• edited by
1,172 views
1 1 vote

Consider the following statements.
1. A thread running in critical section never get context switched.
2. Hardware access to devices is usually available in user mode.
3. Modifications to the page tables are only possible in Kernel mode.

Which of the above statements are incorrect?

1 Answer

3 3 votes

Let us consider the statements 1 by 1..

Statement 1 is false as context switch may occur for threads even when it is in kernel mode..For more reference :

http://stackoverflow.com/questions/37493084/can-a-thread-be-preempted-while-in-the-middle-of-a-critical-section

Statement 3 is true as modifying page tables is a priveleged operation and hence it is done in kernel mode not user mode..

Statement 2 is false as access to hardware device from user point can have serious security issues and hence needs to be done in kernel mode usually..For this we have to read about "Rings of Protection"

Hence  statement 1 and 2 is false..

Reference : http://stackoverflow.com/questions/5807123/how-does-windows-implement-user-mode-kernel-mode

• edited by
Position:
Show:

Related questions

1 1 vote
3 3 answers
1.1k
1.1k views
1 1 vote
1 1 answer
2.8k
2.8k views
balraj_allam asked Dec 28, 2018
2,813 views
Consider the following statements:S1 : Multiprogramming is used to increase CPU utilization, while time-sharing is used to increase CPU responsiveness in interacting wit...
0 0 votes
1 1 answer
2.8k
2.8k views
balraj_allam asked Dec 9, 2018
2,817 views
Consider the following statements:S1: Multiprogramming is used to increase CPU utilization, while time-sharing is used to increase CPU responsiveness in interacting with ...
0 0 votes
2 2 answers
3.0k
3.0k views
roopkathaaa asked Sep 2, 2023
2,995 views
A system has 5 process and 3 resources (A, B, C). The maximum count of resources are (10, 5, 7). Consider the following table of resource allocation. MAX(A B C)Alloc...