Which of these are inter-process communication (IPC) mechanisms? (Select all that apply.)
- A.
Pipes
- B.
Shared memory
- C.
Message queues
- D.
Ordinary global variables of another process
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Which of these are inter-process communication (IPC) mechanisms? (Select all that apply.)
Pipes
Shared memory
Message queues
Ordinary global variables of another process
Sign up free to see the answer and a step-by-step explanation.
What does each thread of a process have of its own?
Separate open files
A stack and a set of registers
A separate copy of the code
A separate heap
Sign up free to see the answer and a step-by-step explanation.
Which scheduler swaps processes out of memory and back in to control memory pressure?
The long-term scheduler
The short-term scheduler
The I/O scheduler
The medium-term scheduler
Sign up free to see the answer and a step-by-step explanation.
Which Unix system call does a parent process use to wait for a child process to finish?
wait()
exit()
fork()
kill()
Sign up free to see the answer and a step-by-step explanation.
What usually causes a process to move from the running state back to the ready state?
It finishes executing
Pre-emption, for example when its time slice ends
It requests I/O
It is created
Sign up free to see the answer and a step-by-step explanation.
Which state transition cannot happen directly in the standard five-state model?
Ready → Running
Running → Waiting
Waiting → Running
Waiting → Ready
Sign up free to see the answer and a step-by-step explanation.
What is thread-local storage?
Disk space for threads
The kernel's thread table
Data that each thread has its own private copy of
Memory shared by all threads
Sign up free to see the answer and a step-by-step explanation.
In the one-to-one threading model, what does each user thread map to?
A single shared kernel thread
A process
A CPU core permanently
Its own kernel thread
Sign up free to see the answer and a step-by-step explanation.
What is the advantage of the many-to-many threading model?
It uses exactly one kernel thread
It needs no kernel support
Many user threads share a smaller or equal number of kernel threads, so one blocking call doesn't block all of them and kernel threads aren't wasted
It removes the need for scheduling
Sign up free to see the answer and a step-by-step explanation.
A program is 90% parallelisable. By Amdahl's law, what is the greatest speed-up possible with any number of cores?
9 times
10 times
90 times
Unlimited
Sign up free to see the answer and a step-by-step explanation.