Question

In: Computer Science

please answer each question in details with each answer being highlighted thank you Describe differences between...

please answer each question in details with each answer being highlighted thank you

  1. Describe differences between kernel and user mode (10 points )
  2. Consider the following set of processes, with the length of the CPU burst given in milliseconds

Process

Burst time

Priority

P1

10

3

P2

1

1

P3

2

3

P4

1

4

P5

5

2

The processes are assumed to have arrived in the order, all in time 0.

  1. Fill-up 4 Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: (15 points)
  1. SJF

Time

0

CPU

Ready queue

  1. Preemptive priority (smallest priority number – higher priority)

Time

0

CPU

Ready queue

  1. RR (quantum=1)

Time

0

CPU

Ready queue

  1. HRRF

Time

0

CPU

Ready queue

  1. Include analysis table: TAT, Normalized TAT, waiting time (5 points)
  2. Which of the algorithms from part a) results in the minimum average waiting time (overall processes)? (5 points)
  1. Explain how time quantum value and context switching time affect each other, in a Round Robin scheduling algorithm. (10 points)
  2. Consider the following piece of C code:

void main(){

              if(fork()){

              fork();

}

              fork();

              exit();

}

How many child processes are created upon the execution of this program?

Solutions

Expert Solution

solved the complete question but i dont able to upload multiple images,

No. Of child process created is 5

User level thread implemented by user or programmer while kernel thread created by Os.

Os cant recognize user thread but can kelnel thread

User level thread are dependent thread but kernel thread are independent

User level thread implementation is easy but kernel thread not.

User level thread having less context but level thread having high context.


Related Solutions

Outline and describe the differences between prokaryotic and eukaryotic repair mechanisms. Please CITE. Thank you.
Outline and describe the differences between prokaryotic and eukaryotic repair mechanisms. Please CITE. Thank you.
For Astronomy class, please answer this question clearly, thank you. Describe the similarities and the differences...
For Astronomy class, please answer this question clearly, thank you. Describe the similarities and the differences between the mechanisms by which Terrestrial and Jovian planets generate their magnetic fields.
please type the answer thank you What are major differences between water treatment and waste water...
please type the answer thank you What are major differences between water treatment and waste water treatment plant? What is Short-Circuiting? Describe three Classifications of wastewater! What is Comminutor? What is activated sludge system? Describe it.
Please answer all 4 questions. Thank you! 1) What are the 2 primary differences between FRP...
Please answer all 4 questions. Thank you! 1) What are the 2 primary differences between FRP and FRC re: stress-strain behavior of components? 2) What types of glass fiber are best to use in FRC? 3) How does cement matrix bond to fibers versus bonding to aggregate re: interface zone? 4) Which of the types of bonding (elastic bonding, frictional bonding, mechanically bonding) between fibers and cementitious matrix is most important for glass fibers and for steel fibers?
Please answer each question and show calculation/ provide explanations. Thank you so much. Question 1 You...
Please answer each question and show calculation/ provide explanations. Thank you so much. Question 1 You have just been hired as the staff accountant for Maximum Corporation. However, the accounting manager is unclear about your ability to determine where certain increases and decreases should be placed. Indicate in the columns below by placing a check-mark (√        ) in the appropriate column identified. Office rent is increased.                                   Service Revenue is increased. Prepaid Expense is reduced. Cash is decreased. Plant and machinery...
*Please answer ALL parts of the question...Thank you!!! Analyze the soccer kick. For each phase of...
*Please answer ALL parts of the question...Thank you!!! Analyze the soccer kick. For each phase of the skill include: Range of motion needed to perform task at each joint. Movement and plane of motion at each joint. Muscles acting as agonists, antagonists, and stabilizers at each joint and type of muscle contraction. What may happen if any of the major muscles are weak or are not contracting correctly?
Answer the following question: a) Explain in details any four differences between perpetual and periodic inventory...
Answer the following question: a) Explain in details any four differences between perpetual and periodic inventory method. b) What are the challenges faced by store manager in doing physical inventory count? c) What are the problems faced in determining the ownership of inventory? How would solve such problem? b) How petty cash expenses are different from other expenses?
Each question has 6-7 parts, depending on the work. Please answer every part. Thank you. -...
Each question has 6-7 parts, depending on the work. Please answer every part. Thank you. - What is the formula for the Average Propensity to Consume (APC)? Group of answer choices consumption divided by income the change in consumption divided by a change in income income divided by consumption the change in income to a change in consumption None of the above - How does the size of the Marginal Propensity to Consume (MPC) affect the size of the multiplier...
Each question has 8-9 parts, depending on the work. Please answer every part. Thank you. -...
Each question has 8-9 parts, depending on the work. Please answer every part. Thank you. - The government spending multiplier is Group of answer choices the ratio of the change in the equilibrium level of output to a change in government spending the difference between the new and old levels of government spending. the ratio of the change in government spending to the change in the equilibrium level of output the difference between the old level of equilibrium output and...
Please answer each question in between 200-250 word 3. Describe and define the characteristics of the...
Please answer each question in between 200-250 word 3. Describe and define the characteristics of the scientific method? (10 points) 4. You are a manager of a large telemarketing firm with a reputation for high-quality customer service. Lately complaints have surfaced that an increased number of incoming calls are being misrouted or dropped. Last week, while passing by the main reception area, you noticed the receptionist fiddling with his hearing aid. Yesterday, you noticed a new, very young receptionist chatting...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT