Embedded Systems Questions and Answers – Task Swapping Methods

This set of Embedded Systems Multiple Choice Questions & Answers (MCQs) focuses on “Task Swapping Methods”.

1. Which task swapping method does not require the time critical operations?
a) time slice
b) pre-emption
c) cooperative multitasking
d) schedule algorithm
View Answer

Answer: a
Explanation: Time-critical operations are not essential in the time slice mechanism. Time slice mechanism describes the task switching in a particular time slot.

2. Which task swap method works in a regular periodic point?
a) pre-emption
b) time slice
c) schedule algorithm
d) cooperative multitasking
View Answer

Answer: b
Explanation: The time slicing works by switching task in regular periodic points in time, that is, any task that needs to run next will have to wait until the current time slice is completed.

3. Which of the following determines the next task in the time slice method of task swapping?
a) scheduling program
b) scheduling application
c) scheduling algorithm
d) scheduling task
View Answer

Answer: c
Explanation: The time slice mechanism can also be used as a scheduling method in which the task to run next is determined by the scheduling algorithm.
advertisement
advertisement

4. Which of the following can be used to distribute the time slice across all the task?
a) timer
b) counter
c) round-robin
d) task slicing
View Answer

Answer: c
Explanation: The time slice based system uses fairness scheduler or round robin to distribute the time slices across all the tasks that need to run in a particular time slot.

5. What do a time slice period plus a context switch time of the processor determines?
a) scheduling task
b) scheduling algorithm
c) context task
d) context switch time
View Answer

Answer: d
Explanation: The context switch time of the processor along with the time slice period determines the context switch time of the system which is an important factor in system response, that is, the time period can be reduced to improve the context switching of the system which will increase the number of task switches.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which can increase the number of task switches?
a) time period
b) frequency
c) time rate
d) number of cycles
View Answer

Answer: a
Explanation: The time period can be reduced to improve the context switching of the system which will increase the number of task switches.

7. Which mechanism is used behind the Windows 3.1?
a) time slice
b) pre-emption
c) cooperative multitasking
d) scheduling algorithm
View Answer

Answer: c
Explanation: The cooperative multitasking mechanism is used the Windows 3.1 but it is not applicable to the real-time operating systems.
advertisement

8. Which of the following provides an illusion of multitasking?
a) single task operating system
b) multitasking operating system
c) cooperative multitasking
d) pre-emption
View Answer

Answer: c
Explanation: The cooperative multitasking co-operates between them which provides the illusion of multitasking. This is done by periodically executing the tasks.

9. Which task method follows a currently running task to be stopped by a higher priority task?
a) scheduling algorithm
b) time slice
c) cooperative multitasking
d) pre-emption
View Answer

Answer: d
Explanation: The pre-emption is an alternative method of the time slice where the currently running task can be stopped or preempted or switched out by a higher priority active task.
advertisement

10. Which of the following requires programming within the application?
a) time slice
b) scheduling algorithm
c) pre-emption
d) cooperative multitasking
View Answer

Answer: d
Explanation: The cooperative multitasking requires programming within the application and the system can be destroyed by a single program which hogs all the processing power. Therefore, it is not applicable in the real-time operating system.

11. What does RMS stand for?
a) rate monotonic scheduling
b) rate machine scheduling
c) rate monotonic software
d) rate machine software
View Answer

Answer: a
Explanation: The rate monotonic scheduling is a method that is used to assign priority for a pre-emptive system such that the correct execution can be guaranteed.

12. Which of the following task swapping method is a better choice in the embedded systems design?
a) RMS
b) pre-emptive
c) cooperative multitasking
d) time slice
View Answer

Answer: b
Explanation: The pre-emptive method of task swapping is the first choice for embedded system design because of its better system response.

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.