1.
What is the mechanism used by an OS to regain control of the CPU?
Group of answer choices
A.firewall
B.portal
C. timer
d. program counter
2. Oftentimes, CPU registers can be used
Group of answer choices
a to store values for reuse by other user programs
b. none of the other answers are correct
c. to pass parameters to the OS
d. to save memory for storing programs
3.
A Policy
Group of answer choices
a.is not likely to change over time
b.determines how to do something
c.is not likely to change across places
d. determines what will be done.
4.
A developer is creating a program that often needs to spawn several threads during its execution.
Group of answer choices
The developer should use multiprocessing rather than mutltithreading
The developer should explicitly create threads only when needed
Any of the other answers is equivalently good.
The developer should use a thread pool to lower overhead of thread creation
5.
With the non-blocking send
Group of answer choices
The sending process has to wait if the receiving process implements a blocking receive to get the message
The sending process resumes execution without waiting on the receiving process to get the message
The sending process waits for the receiver process to get the message
The message may get lost if the receiver process implements a blocking receive to get messages
6.
For a process to execute faster, a developer should primarely
Group of answer choices
increase the main memory size
execute it on a faster CPU
execute it on a multicore CPU
increase the portion of code that can be executed in parallel
1.What is the mechanism used by an OS to regain control of the CPU?
timer
2. Oftentimes, CPU registers can be used,
to store values for reuse by other user programs
3.A Policy is,
b.determines how to do something
4.A developer is creating a program that often needs to spawn several threads during its execution.
The developer should explicitly create threads only when needed
5.With the non-blocking send,
The sending process resumes execution without waiting on the receiving process to get the message
6.For a process to execute faster, a developer should primarely,
increase the main memory size
Get Answers For Free
Most questions answered within 1 hours.