Preemption and multiprogramming in Linux

User Generated

Yrkvunaare

Computer Science

CS340 OPerating Systems

Colorado Technical University

Description

There are those who do not understand how a computer system can execute many programs at the same time or what happens when a program is preempted during execution.

You need to investigate the concepts of preemption, memory swapping, and context switching, and you should explain how these concepts support multiprogramming and the preemption of processes for Linux.

4 page minimum.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Attached.

Running Head: CONCEPTS OF PREEMPTION, MEMORY SWAPPING, AND CONTEXT
SWITCHING

Concepts of preemption, memory swapping, and context switching
Student’s Name
Institution of Affiliation
Course
Date

1

CONCEPTS OF PREEMPTION, MEMORY SWAPPING, AND CONTEXT SWITCHING

2

Introduction
Computer multitasking involves a computer executing more than one program at the
same time. It is the execution of multiple tasks in a concurrent manner within a specified period
where the new task can interrupt the earlier tasks under execution even before the task get to
completion. Instead of a computer waiting for one program to be completely executed, it
executes certain portions of multiple programs in an interleaved manner. Multitasking of many
programs does not require parallel programming because there is one common processing unit;
the CPU and main memory that are involved in the multitasking process. What happens is that
one task is allowed to advance over the other within a certain duration. Multitasking can be
categorized into the concepts of preemption, memory swapping, and context switching.
Concepts of Preemption
The concept of preemptive multitasking rapidly allows the computer operating system to
allocate each process an adequate CPU processing slice of the operating system. This makes the
Linux Operating System reliable for multitasking and guarantees that the system will deal with
all the critical external events such as inputs that may necessitate the need to add an extra process
(Kramer, 2015). Linux Operating system is designed in such a manner that it can facilitate
preemptive multitasking due to the capabilities of the CPU to allow multiprogramming.
The concept of preemptive multitasking eliminates the incidence where Linus Operating
System wil...

Similar Content

Related Tags