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: System calls provide the interface between a process and the operating system System calls for modern Microsoft windows platforms are part of the win32 API, which is available for all the compilers written for Microsoft windows
4. What are the various components of a computer system?
Correct Answer: A real time process is a process that must respond to the eventswithin a certain time period A real time operating system is an operating system that can run realtime processes successfully
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: 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: 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
10. 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