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

Please answer the 4 multiple choice questions below: If a thread that is in the

ID: 3675340 • Letter: P

Question

Please answer the 4 multiple choice questions below:

If a thread that is in the user mode run state is running on a CPU that takes any type of exception (interrupt, trap, fault, etc.), that thread will immediately transition to kernel mode run state. True False We expect that an operating system's timesharing scheduling algorithm may dynamically adjust the priority of a ready thread that has not had any CPU time for a long period. True False During the lifetime of a multithreaded process, each thread of the process is allowed to have its own thread specific private working directory. True False When a thread running in user mode makes a system call, the thread remains in the user run state while the system call is executed. True False

Explanation / Answer

1. TRUE .. When the kernel has satisfied the process's request, it restores the process to user mode. The standard procedure to switch from user mode to kernel mode software interrupt. It is a non-privileged mode

2. TRUE. since it is waiting for long time .. hence this thread might need attention.

3. TRUE. sine every thread specifies a particular task and hence it need its own specific memory to execute the task other wise there will be a blockage

4. TRUE: since it is executing hence it must be in run state .