Question 41
MediumWhich scheduler runs most often?
- A.
The disk scheduler
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Which scheduler runs most often?
The disk scheduler
The medium-term scheduler
The long-term scheduler
The short-term (CPU) scheduler
Sign up free to see the answer and a step-by-step explanation.
What is cooperative (non-pre-emptive) multitasking?
Each process runs until it voluntarily gives up the CPU
Only one process ever runs
The OS takes the CPU away at fixed intervals
Processes run on separate computers
Sign up free to see the answer and a step-by-step explanation.
Why does each process also have a kernel stack, besides its user stack?
To store the program's code
It is used while the kernel runs on the process's behalf, for example during a system call
To hold the page table
To store open files
Sign up free to see the answer and a step-by-step explanation.
What happens to the threads of a process when the process is killed?
They are moved to another process
They all end
They continue as separate processes
Only the main thread ends
Sign up free to see the answer and a step-by-step explanation.
What are green threads?
Kernel threads with high priority
Threads that use less power
Threads that never block
Threads scheduled by a language runtime or virtual machine rather than by the OS
Sign up free to see the answer and a step-by-step explanation.
What does joining a thread mean?
Giving a thread higher priority
Starting a new thread
Merging two threads' code
Waiting until that thread finishes
Sign up free to see the answer and a step-by-step explanation.
Which IPC method is usually fastest for passing large amounts of data between processes on the same machine?
Message passing through the kernel
Sending signals
Shared memory
Writing to a file
Sign up free to see the answer and a step-by-step explanation.
What is a named pipe (FIFO)?
A network cable
A pipe that works only between a parent and its child
A pipe that stores data permanently
A pipe that has a name in the file system, so unrelated processes can use it
Sign up free to see the answer and a step-by-step explanation.
What does the program counter field of a PCB hold?
The number of instructions executed
The number of open files
The address of the next instruction the process will execute
The process's priority
Sign up free to see the answer and a step-by-step explanation.
A ready process that has been swapped out to disk is said to be in which state?
Ready-suspended
Running
Terminated
New
Sign up free to see the answer and a step-by-step explanation.