Tasks Threads and Process MCQ Quiz – Objective Question with Answer for Tasks Threads and Process in Embedded System

1. Which of the following can be used to refer to entities within the RTOS?

A. threads
B. kernels
C. system
D. applications

Answer: A

The threads and processes can be used to refer to entities within the RTOS. They provide an interchangeable replacement for the task. They have a slight difference in their function. A process is a program in execution and it has its own address space whereas threads have a shared address space. The task can be defined as a set of instructions that can be loaded into the memory.

 

2. Which of the following defines the set of instructions loaded into the memory?

A. process
B. task
C. thread
D. system hardware

Answer: B

The task can be defined by the set of instructions that is loaded into the memory and can be split into two or more tasks.

 

3. Which of the following uses its own address space?

A. thread
B. process
C. task
D. kernel

Answer: A

Threads use shared memory space and it uses the memory space of the process.

 

4. Which of the following does not use a shared memory?

A. process
B. thread
C. task
D. kernel

Answer: A

The program in execution is known as the process. The process does not share the memory space but the threads have a shared memory address. When the CPU switches from one process to another, the current information is stored in the process descriptor.

 

5. Which of the following can own and control the resources?

A. thread
B. task
C. system
D. peripheral

Answer: B

The task and process have several characteristics and one such is that the task or process can own or control resources and it has threads of execution which are the paths through the code.

 

6. Which can be supported if the task or process maintains a separate data area for each thread?

A. single thread system
B. mono thread system
C. multiple threads
D. dual threads

Answer: C

The multiple threads can be supported only if the process or task can maintain separate data areas for each thread.

 

7. Which of the following possesses threads of execution?

A. process
B. thread
C. kernel
D. operating system

Answer: A

The process has threads of execution which are the paths through the code.

 

8. Which of the following is inherited from the parent task?

A. task
B. process
C. thread
D. kernel

Answer: C

The threads are a part of the process, that is, it uses a shared memory of the process and therefore said that its resources are inherited from the parent process or task.

 

9. Which term is used to encompass more than a simple context switch?

A. process
B. single thread system
C. thread
D. multithread

Answer: A

The process includes the additional information which is used to encompass more than a simple context switch. This is similar to task switching, that is why it is said that process and task are interchangeable.

 

10. Which can be considered as the lower level in the multitasking operating system?

A. process
B. task
C. threads
D. multi-threads

Answer: C

In the multitasking operating system, the process and tasks form the higher level whereas the thread is the lower level. But in a simple operating system, there is no difference between the context switch of the thread and the process.

Scroll to Top