A LECTURE NOTE.

Slides:



Advertisements
Similar presentations
Chapter One The Essence of UNIX.
Advertisements

CS 497C – Introduction to UNIX Lecture 2: Work with Files and Directories Chin-Chih Chang
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
Working Environment - - Linux - -.
Introduction to Unix (CA263) Computing With Unix By Tariq Ibn Aziz.
C and Unix. A Couple Basic Concept and Terms 1. File. 2. Process. 3. Memory 4. HD.
Guide To UNIX Using Linux Third Edition
Fundamentals of Software Development 1Slide 1 Dennis Ritchie and Brian Kernighan What’s C, exactly?What’s C, exactly? A portable language developed by.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.
CST334 Unix & X Window System
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
LINUX/UNIX WORKSTATIONS Franklin Montenegro Carlos Sierra.
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
UNIX OS By: Desmond Dagg Alannah Storm Mullins Carl Kavanagh Gareth Dunne Behzad Sanehi.
Module 1 Introduction to UNIX/Linux
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
UNIX JIN GUO 08/30/00. AGENDA 1.Creation of Unix 2.Unix Uniqueness 3.Unix Architecture 4.Unix Application 5.Unix Security 6.Unix & Web.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
Unix Background. Introducing Unix Brief Unix History u In 1969, Ken Thompson at AT&T Bell Labs began developing Unix. –First done in assembly language.
INTRODUCTION SOFTWARE HARDWARE DIFFERENCE BETWEEN THE S/W AND H/W.
LIS508 background of GNU/Linux
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Operating System Part II: Introduction to the Unix Operating System (The Evolution of Unix)
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
© Prepared By: Razif Razali 1 TMK 265: UNIX SYSTEM CHAPTER ONE – UNIX PHILOSOPHY.
F PRESENTED BY YAN FENG F STUDENT ID: F Instructor: Professor Morteza Anvari F DATE: 03/17/2001.
History of UNIX a short version CSCI 333 August 31, 2011.
Computers & Operating Systems
Just Enough Unix, Chapter 1
OPERATING SYSTEMS BY LANDON, KYLE, AND ETHAN. WHAT IS THEIR PURPOSE? (1) manage the computer's resources, such as the central processing unit (2) establish.
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
Introduction to UNIX. 2 History of Unix  1960 Software based on Hardware Limits  1969 Ken Thompson Develop a Better Programming Environment  1971 New.
Agenda Computer Languages How to Write a Simple C Program
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
Agenda UNX122_022_w1_p3 Overview of UNIX
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
Lab #1: UNIX crash course Introduction: History of Operating Systems Lesson #1: Navigating directories Lesson #2: Creating and editing files with emacs.
OPS224 Operating Systems - Unix Instructor: MURRAY SAUL.
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Chapter 4: Threads Modified by Dr. Neerja Mhaskar for CS 3SH3.
Advanced Operating Systems (CS 202)
Popular Operating System Chapter 8
Chapter 2: System Structures
Threads CSSE 332 Operating Systems Rose-Hulman Institute of Technology
Introduction to Operating System (OS)
Chapter 2: Operating-System Structures
Chapter 2: System Structures
Unix : Introduction and Commands
Chapter 2: The Linux System Part 1
Introduction Paul Flynn
CSCE 313 – Introduction to UNIx process
Copyright ©2008 by Pearson Education, Inc
Linux Professor Sabol.
The Main Features of Operating Systems
Chapter 2: Operating-System Structures
UNIX and Shell Programming (06CS36)
UNIX and Shell Programming (06CS36)
Consult America Technology Consulting Services
The UNIX Time Sharing System
Presentation transcript:

A LECTURE NOTE

Multiuser capability (The computer can take the commands of a number of users -- determined by the design of the computer -- to run programs, access files, and print documents at the same time.)

The kernel :

The kernel of UNIX is the hub of the operating system: it allocates time and memory to programs and handles the file storage and communications in response to system calls.

An illustration of the way that the shell and the kernel work together, suppose a user types rm myfile (which has the effect of removing the file myfile). The shell searches the filestore for the file containing the program rm, and then requests the kernel, through system calls, to execute the program rm on myfile. When the process rm myfile has finished running, the shell then returns the UNIX prompt to the user, indicating that it is waiting for further commands.

The shell :

The shell acts as an interface between the user and the kernel The shell acts as an interface between the user and the kernel. When a user logs in, the login program checks the username and password, and then starts another program called the shell. The shell is a command line interpreter (CLI) which interprets the commands the user types in and then arranges for them to be carried out.

The commands are themselves programs The commands are themselves programs. When they terminate, the shell would give the user another prompt.

The adept user can customize his/her own shell, and users can use different shells on the same machine. As an illustration the shell may be customized with certain features to help the user in inputting commands, filename Completion - By typing part of the name of a command, filename or directory and pressing the [Tab] key, the shell will complete the rest of the name automatically. If the shell finds more than one name beginning with the letters that has been typed, it would beep, prompting the user to type a few more letters before pressing the tab key again.

3. Programs

The history of UNIX starts back in 1969, when a small group composed of Ken Thompson, Dennis Ritchie and others started working on the "little-used PDP-7 in a corner" at Bell Lab and what was to become UNIX. For 10years,the development of UNIX proceeded at AT&T in numbered versions. The 1974 version was re-written in C, a major mile stone for the operating system’s portability among different systems .The 1975 version was the first to become available outside Bell Lab. It became the basis of the first version of UNIX developed at the university of California Berkely. By 1983, Computer Research Group (CRG), UNIX System Group (USG) and a third group merge to become UNIX System Development Lab and AT&T announces UNIX System V, the first supported release. Installed base was 45,000. The goals of the group were to design an operating system to satisfy the following objectives:

The group worked primarily in the high level language in developing the operating system. The first edition was released in 1971, it had an assembler for a PDP-11/20, file system, fork(), roff and ed. It was used for text processing of patent document.

In 1998, X/Open introduced the UNIX 95 In 1998, X/Open introduced the UNIX 95. In 1995, a branding programme for implementations of the Single UNIX Specification. Novell sold UnixWare business line to SCO and was Digital UNIX introduced in the same year.

In 1999, the UNIX system reaches its 30th anniversary. Linux 2 In 1999, the UNIX system reaches its 30th anniversary. Linux 2.2 kernel was released. The Open Group and the IEEE commence joint development of a revision to POSIX and the Single UNIX Specification.

In 2003, The core volumes of Version 3 of the Single UNIX Specification were approved as an international standard.

UNIX POPULARITY

Many vendors have decide to use UNIX because of the following reasons :

Memory management Policies:

Allocating swap space

Freeing swap space

Swapping

Demand paging

MEMORY

UNIX Memory Management Policies

Swapping

Algorithm: Allocate Swap Space

Swapping Process Out

Memory  Swap device

Kernel swap out when it needs memory

UNIX works very differently UNIX works very differently. Rather than having kernel tasks service the requests of a process, the process itself enters kernel space. This means that rather than the process waiting "outside" the kernel; it enters the kernel itself (i.e. the process will start executing kernel code for itself).

When a process invokes a system call, the hardware is switched to the kernel settings. At this point, the process will be executing code from the kernel image.

3.4.1 Basic operations on processes in UNIX

Creation of processes in UNIX