Out of the following statement Which of the following activities are true about multitasking

This set of Embedded Systems Multiple Choice Questions & Answers (MCQs) focuses on “Multitasking Operating Systems”.

1. Which of the following works by dividing the processor’s time?
a) single task operating system
b) multitask operating system
c) kernel
d) applications
View Answer

Answer: b
Explanation: The multitasking operating system works by dividing the processor’s time into different discrete time slots, that is, each application requires a defined number of time slots to complete its execution.

2. Which of the following decides which task can have the next time slot?
a) single task operating system
b) applications
c) kernel
d) software
View Answer

Answer: c
Explanation: The operating system kernel decides which task can have the next time slot. So instead of the task executing continuously until completion, the execution of the processor is interleaved with the other tasks.

3. Which of the following controls the time slicing mechanism in a multitasking operating system?
a) kernel
b) single tasking kernel
c) multitasking kernel
d) application manager
View Answer

Answer: c
Explanation: The multitasking operating systems are associated with the multitasking kernel which controls the time slicing mechanism.

4. Which of the following provides a time period for the context switch?
a) timer
b) counter
c) time slice
d) time machine
View Answer

Answer: c
Explanation: The time period required for each task for execution before it is stopped and replaced during a context switch is known as the time slice.

5. Which of the following can periodically trigger the context switch?
a) software interrupt
b) hardware interrupt
c) peripheral
d) memory
View Answer

Answer: b
Explanation: The multitasking operating systems are associated with the multitasking kernel which controls the time slicing mechanism. The time period required for each task for execution before it is stopped and replaced during a context switch is known as the time slice. These are periodically triggered by a hardware interrupt from the system timer.

6. Which interrupt provides system clock in the context switching?
a) software interrupt
b) hardware interrupt
c) peripheral
d) memory
View Answer

Answer: b
Explanation: The multitasking operating systems deals with the multitasking kernel which controls the time slicing mechanism and the time period required for each task for execution before it is stopped and replaced during a context switch is known as the time slice which are periodically triggered by a hardware interrupt from the system timer. This hardware interrupt provides the system clock in which several interrupts are executed and counted before a context switch is performed.

7. The special tale in the multitasking operating system is also known as
a) task control block
b) task access block
c) task address block
d) task allocating block
View Answer

Answer: a
Explanation: When a context switch is performed, the current program or task is interrupted, so the processor’s registers are saved in a special table which is known as task control block.

8. Which of the following stores all the task information that the system requires?
a) task access block
b) register
c) accumulator
d) task control block
View Answer

Answer: d
Explanation: The task control block stores all the task information that the system requires and this is done when the context switch is performed so that the currently running program is interrupted.

9. Which of the following contains all the task and their status?
a) register
b) ready list
c) access list
d) task list
View Answer

Answer: b
Explanation: The ‘ready’ list possesses all the information regarding a task, that is, all the task and its corresponding status which is used by the scheduler to decide which task should execute in the next time slice.

10. Which determines the sequence and the associated task’s priority?
a) scheduling algorithm
b) ready list
c) task control block
d) application register
View Answer

Answer: a
Explanation: The scheduling algorithm determines the sequence and an associated task’s priority. It also determines the present status of the task.

11. Which can control memory usage?
a) operating system
b) applications
c) hardware
d) kernel
View Answer

Answer:d
Explanation: The kernel can control the memory usage and it can also prevent the tasks from corrupting each other.

12. Which can control the memory sharing between the tasks?
a) kernel
b) application
c) software
d) OS
View Answer

Answer: a
Explanation: The kernel can control memory sharing between tasks which allow sharing common program modules.

13. Which of the following can implement the message passing and control?
a) application software
b) operating system
c) software
d) kernel
View Answer

Answer: d
Explanation: The kernel can implement the message passing and control which acts as a message passer and controller between the tasks.

14. How many types of messages are associated with the real-time operating system?
a) 2
b) 3
c) 4
d) 5
View Answer

Answer: a
Explanation: There are two basic types of messages associated with the real-time operating system. These are semaphores and messages.

15. Which of the following can carry information and control task?
a) semaphore
b) messages
c) flags
d) address message
View Answer

Answer: b
Explanation: The messages can carry information and it can also control the task regarding the real-time operating systems. These are also known as events.

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.

Next Steps:

  • Get Free Certificate of Merit in Embedded System
  • Participate in Embedded System Certification Contest
  • Become a Top Ranker in Embedded System
  • Take Embedded System Tests
  • Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  • Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Out of the following statement Which of the following activities are true about multitasking

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 & technical discussions at Telegram SanfoundryClasses.

Which of the following is true for multitasking system?

True multitasking is the capacity of an operating system to carry out two or more tasks simultaneously rather than switching from one task to another. The multi-core processors in most current computers enable true multitasking because each core can be performing a separate task at any given time.

How multitasking is achieved in an operating system Mcq?

Explanation: The multitasking operating system works by dividing the processor's time into different discrete time slots, that is, each application requires a defined number of time slots to complete its execution.

Which of these are multitasking?

Correct Option: B. There are two types of multitasking: Process based multitasking and Thread based multitasking.

Which of the following are the advantage of multiprogramming Mcq?

Question: What are the advantages of multiprogramming? Increased CPU Utilization − Multiprogramming improves CPU utilization as it organizes a number of jobs where CPU always has one to execute. Increased Throughput − Throughput means total number of programs executed over a fixed period of time.