1.)Where is a PCB for a process stored?
a.Group of answer choices
b. Managed by some user-space OS service.
c. In a kernel data structure.
2.) Where is the TCB for a ULT thread stored?
a. Managed by some user-space OS service.
b. In an individual process's memory in user-space.
c. In a kernel data structure.
3.)Which context switch is faster?
Group of answer choices
a. ULT thread to ULT thread
b. process to Process
c. KLT thread to KLT thread
4.) What is swapping and what is its purpose?
Please upvote if you are able to understand this and if there is any query do mention it in the comment section.
1.) The correct option is c. in kernel data structure. As the kernel stack is in the kernel space which is protected from different types of users.
2.) The correct option is b. In an individual's process's memory in user-space. As the TCB for multiple threads is supposed to be stored the level of the user.
3.) The correct option is b. process to process. As the process to process takes between threads of same processes.
4.) Swapping is a technique which is used by the operating system to swap a process not permanantly out of the main memory of system so that the memory used by that process can be used by other processes in the system.
Purpose: All the process are getting executed even if the memory of the system has no space.
Get Answers For Free
Most questions answered within 1 hours.