How is a new process created? Select all that apply.
Via fork - if we want to create a process that is an exact replica of the calling process
Via fork followed by exec - If we want to create a process that is not an exact replica of the calling process
Via fork or fork followed by exec
******************************************************************
Relevant Sections
P2L1: Processes and Process Management
Process Life Cycle: Creation
Is there a benefit of multithreading on 1 CPU?
Give 1 reason to support your answer.
Yes. The main reason is to hide the latency associated with code that blocks processing (such as a disk I/O request).
****************************************************
Relevant Sections
P2L2: Threads and Concurrency
Benefits of Multithreading: Single CPU
An image web server has three stages with average execution times as follows:
Implement multithreaded pipeline model, answer the following questions:
Use threads to overcome the weakest link.
In this case 30ms and 20ms can be overcome by 3 threads and 2 threads respectively.
So first request is processed in 60ms
Next 99 processed in 10s each -as fast as the fastest link.