Question 61
HardA program is 90% parallelisable. By Amdahl's law, what is its speed-up on 10 processors?
- A.
9×
- B.
About 6.5×
- C.
10×
- D.
About 5.26×
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
A program is 90% parallelisable. By Amdahl's law, what is its speed-up on 10 processors?
9×
About 6.5×
10×
About 5.26×
Sign up free to see the answer and a step-by-step explanation.
A program is 90% parallelisable. What is the largest speed-up possible, however many processors are used?
Unlimited
10×
9×
90×
Sign up free to see the answer and a step-by-step explanation.
Which is NOT shared between threads of the same process?
Global variables
The heap
Open files
Each thread's stack and register values
Sign up free to see the answer and a step-by-step explanation.
How does the two-level threading model differ from the plain many-to-many model?
It removes kernel threads altogether
It runs all user threads on a single kernel thread
It maps every user thread to exactly one kernel thread
It also lets a chosen user thread be bound permanently to its own kernel thread
Sign up free to see the answer and a step-by-step explanation.
Which threading model maps each user thread to its own kernel thread?
Many-to-many
Many-to-one
Two-level only
One-to-one
Sign up free to see the answer and a step-by-step explanation.
What happens when a thread in a multithreaded process calls fork() in POSIX?
The child gets a copy of the process with only the calling thread
The child gets copies of all the threads
The parent's other threads are killed
fork() is not allowed in threads
Sign up free to see the answer and a step-by-step explanation.
Which state does a process enter when it waits for an I/O operation to finish?
Ready
Running
Terminated
Waiting (blocked)
Sign up free to see the answer and a step-by-step explanation.
A process is moved from the ready queue to the CPU. What is this called?
Swapping out
Spawning
Blocking
Dispatching
Sign up free to see the answer and a step-by-step explanation.
What does the medium-term scheduler do?
Admits new jobs to the system
Swaps processes out of memory and back in to control the degree of multiprogramming
Chooses the next process to run every few milliseconds
Schedules disk requests
Sign up free to see the answer and a step-by-step explanation.
Which is an example of a CPU-bound process?
A backup copying files to disk
A web server waiting for requests
A program computing a large matrix multiplication
A text editor waiting for key presses
Sign up free to see the answer and a step-by-step explanation.