CA2 Unix
CA2 Unix
CA2 Unix
and Management
Unix was originally developed in 1969 by a group of AT&T employees Ken Thompson, Dennis Ritchie,
Douglas McIlroy, and Joe Ossanna at Bell Labs.
Feature Of Unix Operating System
Multitasking: A UNIX operating system is a multitasking operating system that allows you to
initiate more than one task from the same terminal so that one task is performed as a foreground and
the other task as a background process.
Multi-user: UNIX operating system supports more than one user to access computer resources like
main memory, hard disk, tape drives, etc. Multiple users can log on to the system from different
terminals and run different jobs that share the resources of a command terminal. It deals with the
principle of time-sharing. Time-sharing is done by a scheduler that divides the CPU time into several
segments also called a time slice, and each segment is assigned to each user on a scheduled basis.
This time slice is tiny. When this time is expired, it passes control to the following user on the
system. Each user executes their set of instructions within their time slice.
Portability: This feature makes the UNIX work on different machines and platforms with the easy
transfer of code to any computer system. Since a significant portion of UNIX is written in C
language, and only a tiny portion is coded in assembly language for specific hardware.
File Security and Protection: Being a multi-user system, UNIX makes special consideration for file
and system security. UNIX has different levels of security using assigning username and password to
individual users ensuring the authentication, at the level providing file access permission viz. read,
write and execute and lastly file encryption to change the file into an unreadable format.
Command Structure: UNIX commands are easy to understand and simple to use. Example: "cp",
mv etc. While working in the UNIX environment, the UNIX commands are case-sensitive and are
entered in lower case.
Open Source: UNIX operating system is open source it means it is freely available to all and is a
community-based development project
Unix Architecture
• Kernel − The kernel is the heart of the operating system. It interacts with the hardware and most of
the tasks like memory management, task scheduling and file management.
• Shell − The shell is the utility that processes your requests. When you type in a command at your
terminal, the shell interprets the command and calls the program that you want. The shell uses
standard syntax for all commands. C Shell, Bourne Shell and Korn Shell are the most famous shells
which are available with most of the Unix variants.
• Commands and Utilities − There are various commands and utilities which you can make use of in
your day to day activities. cp, mv, cat and grep, etc. are few examples of commands and utilities.
There are over 250 standard commands plus numerous others provided through 3 rd party software.
All the commands come along with various options.
• Files and Directories − All the data of Unix is organized into files. All files are then organized into
directories. These directories are further organized into a tree-like structure called the filesystem.
Types Of Kernel
• Monolithic Kernel – In Monolithic Kernel user services and kernel services are implemented under
the same address space.
• Micro Kernel- In Micro Kernel user services and kernel services are implemented under the
different address space.
Process: A process is a running program that serves as the foundation for all computation
Process Number
This shows the number of the particular process.
Program Counter
This contains the address of the next instruction that needs to be executed in the process.
Registers
This specifies the registers that are used by the process. They may include accumulators, index
registers, stack pointers, general purpose registers etc.
Accounting information
The time limits, account numbers, amount of CPU used, process numbers etc. are all a part of the
PCB accounting information.