Correct Answer: Mutex is a program object that allows multiple program threads to share the same resource, such as file access, but not simultaneously When a program is started a mutex is created woth a unique name After this stage, any thread that needs the resource must lock the mutex from other threads while it is using the resource the mutex is set to unlock when the data is no longer needed or the routine is finished
Correct Answer: Deadlock is a situation where a group of processes are all blocked and none of them can become unblocked until one of the other becomes unblocked The simplest deadlock is two processes each of which is waiting for a message from the other
Correct Answer: Java is one of the small number of languages that support at the language level for the creation and management of threads However, because threads are managed by the java virtual machine (JVM), not by a user-level library or kernel, it is difficult to classify Java threads as either user- or kernel-level
Correct Answer: In order to protect the operating systems and the system programs from the malfunctioning programs the two mode operations were evolved System mode User mode
7. What are the different types of Real-Time Scheduling?
Correct Answer: Hard real-time systems required to complete a critical task within a guaranteed amount of time Soft real-time computing requires that critical processes receive priority over less fortunate ones
Correct Answer: Transferring the control from one process to other process requires saving the state of the old process and loading the saved state for new process This task is known as context switching