Embedded Systems Questions and Answers – Tasks,Threads and Process

This set of Embedded Systems Multiple Choice Questions & Answers (MCQs) focuses on “Tasks, Threads and Process”.

1. Which of the following can be used to refer to entities within the RTOS?
a) threads
b) kernels
c) system
d) applications
View Answer

Answer: a
Explanation: 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 which 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
View Answer

Answer: b
Explanation: The task can be defined by the set of instructions which is loaded into the memory and it can split into two or more tasks.

3. Which of the following uses its own address space?
a) thread
b) process
c) task
d) kernel
View Answer

Answer: a
Explanation: Threads uses shared memory space and it uses the memory space of the process.

advertisement
advertisement

4. Which of the following does not uses a shared memory?
a) process
b) thread
c) task
d) kernel
View Answer

Answer: a
Explanation: 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 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
View Answer

Answer: b
Explanation: 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.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

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
View Answer

Answer: c
Explanation: 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
View Answer

Answer: a
Explanation: The process has threads of execution which are the paths through the code.
advertisement

8. Which of the following is inherited from the parent task?
a) task
b) process
c) thread
d) kernel
View Answer

Answer: c
Explanation: 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
View Answer

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

10. Which can be considered as the lower level in the multitasking operating system?
a) process
b) task
c) threads
d) multi threads
View Answer

Answer: c
Explanation: 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 thread and the process.

Sanfoundry Global Education & Learning Series – Embedded System.

To practice all areas of Embedded System, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.