In: Computer Science
1 In Linux, when a timer expires, there is a context switch so that the CPU scheduler can run.
False
True
2 The operating system keeps track of CPU usage for all processes.
False
True
3 A system call that does not invoke the CPU scheduler executes in the same context as the process that makes the call.
False
True
4
A ____ synchronizes access to memory from devices that want to access it.
In UNIX, the system call to perform input from a device is named ___.
Ans 1: True
Explanation: Scheduler use to trigger in order to run the another process when timer interrupt / expire occurs or when running process is blocked on I/O then Scheduler picks another process from the ready queue Performs a context switch.
Ans 2: True
Explanation: Task Managers tab's present in the OS (operating Syatem) which performance the data to the user and also keep the all the CPU ussage of the all the Proccess which are running and ready ,blocked etc.
Ans 3: False
Explanation: Whenever during the running the Process's CPU becomes idle, it is the job of the CPU Scheduler to select another process from the ready the queue to run next process but if the system call that does not invoke the CPU schedular will not executes in the same context as the process that makes the call which will create process execution flow problem.
Ans: 4
A Process synchronizes access to memory from devices that want to access it.
In UNIX, the system call to perform input from a device is named ioctl().
Explanation:
Process synchronize access to memory wrt to the devices which they want to access it.
ioctl() is the system call in the UNIX , for device-specific input/output operations .