Operating System Programming and Technical

Q. What is a thread?

A. A thread is a program line under execution. Thread sometimes called a light-weight process, is a basic unit of CPU utilization; it comprises a thread id, a program counter, a register set, and a stack

Read Solution (Total 0)

Operating System Other Question

Q. What is context switching?

A. Transferring the control from one process to other process requires saving the state of the old process and loading the saved state for new process. This task is known as context switching.
Q. What is process synchronization?

A. A situation, where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called race condition. To guard against the race condition we need to ensure that only one process at a time can be manipulating the same data. The technique we use for this is called process synchronization.