Operating System Interview Questions and Answers
Ques 6. What resources are used when a thread created? How do they differ from those when a process is created?
Ans. When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.
Ques 7. What is the virtual memory?Ans. Virtual memory is hardware technique where the system appears to have more memory that it actually does. This is done by time-sharing, the physical memory and storage parts of the memory one disk when they are not actively being used.
Ques 8. What is Throughput, Turnaround time, waiting time and Response time?Ans. Throughput : number of processes that complete their execution per time unit.
Turnaround time : amount of time to execute a particular process.
Waiting time : amount of time a process has been waiting in the ready queue.
Response time : amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment).
Ques 9. What is the state of the processor, when a process is waiting for some event to occur?Ans. The state of the processor is:
Ques 10. What is the important aspect of a real-time system or Mission Critical Systems?Ans. A real time operating system has well defined fixed time constraints. Process must be done within the defined constraints or the system will fail. An example is the operating system for a flight control computer or an advanced jet airplane. Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems. Real-Time systems may be either hard or soft real-time. Hard real-time: Secondary storage limited or absent, data stored in short term memory, or read-only memory (ROM), Conflicts with time-sharing systems, not supported by general-purpose operating systems. Soft real-time: Limited utility in industrial control of robotics, Useful in applications (multimedia, virtual reality) requiring advanced operating-system features.
Most helpful rated by users: