Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Circle the correct answer. The type of IPC that uses points is called. Indirect

ID: 3834125 • Letter: C

Question

Circle the correct answer. The type of IPC that uses points is called. Indirect communication Shared Memory Direct communication automatic communication Briefly describe context switching: If a Thread T2 is declared and started inside a Thread T1, then (circle the correct answer) T1 is the child and T2 is the parent there is no relationship between the two T1 is the parents and T2 is the child none of the above True or False: A preemptive thread can be removed from a processor before it completes execution. Circle the correct answer: If T1 is declared as a thread for executing the method Go () in C#, the correct command to start the thread is: Start.T1 T1.Go () Start.T1 (Go) Go.Start (T1) T1.Start() True or False: two thread T1 and T2 are declared and started in the main C# program, it is possible that the statement Write line ("Hello"); (which is placed in the main program after T1 and T2 have started) may finish execution before T1 and T2 complete execution. In a FCFS queue, three processes arrive one after another in order: P1 (burst time 20 ms). P2 (burst time 4 ms) P3 (burst time 4 ms). What is the average wait time in this case? Draw and compute. What is the one major disadvantage of shortest Job First scheduling and how is it overcome? Disadvantage: overcoming technique: What is processor affinity? What is its advantage: True False: Modern operating systems honor the priority setting of individual threads set in a user or program

Explanation / Answer

11. Indirect Communication
In Indirect Communication, messages are sent to or received from mailboxes or ports.

12. The Operating System performs context switching by storing the state of an active process for the CPU when it has to start executing a different process. For example, process X with its address space and stack is currently being executed and there is a system call event to jump to a higher priority process Y; In this case, if CPU finishes serving high priority task and wants to switch back to the process X, the CPU needs to remember the current state of the process X so that it can suspend its operation, begin executing the new process Y and when done, return to its previously executing process X.
In other words, Context switch is the process of storing and restoring the state (context) of a CPU such that multiple processes can share a single CPU.

13. T1 is the Parent Thread and T2 is Child Thread.

14. True. Preemtive means, a process or thread can be preempted when high priority task requests cpu time.

15. T1.Go()

16. True

17. P1 wait time = 0ms
P2 wait time = 20ms
   P3 wait time = 24ms
  
   Average wait time = (0 + 20 + 24)/3 = 14.67ms

20. True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote