Operating Systems Compare and contrast timesharing vs multiprogramming systems.
ID: 3845098 • Letter: O
Question
Operating Systems
Compare and contrast timesharing vs multiprogramming systems. In particular, which feature requires the presence of another? In other words, if we have a multiprogramming system, does it mean that our system is also a timesharing system? Does the converse hold true (i e., is a timesharing system also a multiprogramming system)? For each of the following system calls, give a condition that causes it to fail:fork, exec, and unlink. Feel free to research failure conditions by visiting the online documentation of each system call. Naturally, you also need to describe what each system call does. What is the main advantage of the microkernel approach to system design? How do user programs and system services interact in a microkernel architecture? What are the disadvantages of using the microkernel approach?Explanation / Answer
2.
1. Multiprogramming is the allocation of more than one concurrent program on a computer system and its resources where as in time sharing system the tasks are given specific time and operating system switches between different tasks.
2.Multiprogramming system is always busy by using buffering, spooling and multiprogramming. On the other hand, Time sharing is the sharing of computing resources among several users at the same time.
3. Each user on a time sharing system gets his own terminal and gets the feeling that he is using the CPU alone. Multiprogramming increases CPU utilization by organizing jobs.
Timesharing (or multitasking) is a logical extension of multiprogramming. Therefore time sharing system uses multiprogramming concept. Time sharing system can be a multiprogram system but it convers never holds this is because time sharing systems use the concept of multiprogramming to share the CPU time between multiple users at the same time.
3.
1. Fork can fail if there are no free slots left in the process table (and possibly if there is nomemory or swap space left).
2. Exec can fail if the file name given does not exist or is not a validexecutable file.
3. Unlink can fail if the file to be unlinked does not exist or the calling process doesnot have the authority to unlink it.
4.
Advantage : Simplicity. The micro-kernel approach to system design keeps the kernel as small
An OS has been developed called Mach that modularized the kernel using the microkernel approach. This method structures the OS by removing all non-essential components from the kernel and implementing them as system and user-level program. Micro kernel provides minimal process and memory management with communication facility. The communication is done indirectly via the method called Message passing. All new services are added to user space and consequently do not require modification of the kernel. Micro kernel provides more security and reliability, since most services are running as user rather than kernel.
Disadvantage: It suffers from performance decrease due to increased system function overhead.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.