Posted by : Unknown Monday, September 30, 2013

Many students who study Unix programming and shell scripting have a question - “How is Linux a mutlitasking operating system?”, as they work from a terminal which looks like DOS.



Let us start with basics.


A single-user operating system is a type of operating system that is developed and intended for use on a computer or similar machine that will only have a single user at any given time. This is the most common type of OS used on a home computer, as well as on computers in offices and other work environments.


There are two general types of single-user operating system:

1. Single tasking

2. Multitasking systems.



Single tasking systems are the systems which are designed to manage the computer so that one user can effectively do one thing at a time.

The Palm OS for Palm hand held computers is a good example of a modern single-user, single-task operating system. DOS is also one the examples.


Multitasking refers to an operating system in which multiple processes, also called tasks, can execute (i.e., run) on a single computer seemingly simultaneously and without interfering with each other. That is, each process has the illusion that it is the only process on the computer and that it has exclusive access to all the services of the operating system.

Windows 95, Windows 98, Windows NT workstations and older Mac system are the examples of single user multitasking operating system.


A multi-user operating system allows many different users to take advantage of the computer's resources simultaneously. The operating system must make sure that the requirements of the various users are balanced, and that each of the programs they are using has sufficient and separate resources so that a problem with one user doesn't affect the entire community of users.

Linux, Unix, VMS and mainframe operating systems, such as MVS, are examples of multi-user operating systems.


There can be more than one users on a Linux system who can login through terminals simultaneously. This way Linux is multiuser OS.


Next time when you login in your Linux/Unix classes, try to run who command. You may find more than one users logged from different terminals along with you. The processes of different users are separate from each other and they get the CPU share equally. The CPU preempts very fast and so Linux is a mutlitasking OS. In fact when you run ps command you will get the name of processes being run from your terminal. And in order to get all the processes being run by the OS type ps aux command.


Linux terminal can run your processes in background too. Append a '&' to your command and run ps. You will get the job being run in background and at the same time your terminal free for next job.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © sabhikeliye - Skyblue - Powered by Blogger - Designed by Johanes Djogan -