MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

CLOUD COMPUTING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ holds the information of the multiple threads of execution
A
Process Control Block
B
Process
C
Thread Control Block
D
Multithreading
Explanation: 

Detailed explanation-1: -An example of information contained within a TCB is: Thread Identifier: Unique id (tid) is assigned to every new thread. Stack pointer: Points to thread’s stack in the process. Program counter: Points to the current program instruction of the thread.

Detailed explanation-2: -Very similar to Process Control Blocks (PCBs) which represents processes, Thread Control Blocks (TCBs) represents threads generated in the system. It contains information about the threads, such as it’s ID and states.

Detailed explanation-3: -Kernel Threads This is a multithreading type. The kernel manages a table to track the threads in each process. Also, there is a separate table to track the processes and update whenever the changes are made. OS makes the changes in the thread while creating and managing them.

Detailed explanation-4: -If a single thread executes in a process, it is known as a single-threaded And if multiple threads execute simultaneously, then it is known as multithreading.

There is 1 question to complete.