LINUX An Introduction Wan Ahmad Tajuddin Wan Abdullah Universiti Malaya KL ACGRID-II 2009.

Slides:



Advertisements
Similar presentations
Operating-System Structures
Advertisements

Threads, SMP, and Microkernels
Operating System.
Operating System Structures
Chap 2 System Structures.
Chapter One The Essence of UNIX.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Computer Systems/Operating Systems - Class 8
3: OS Structures 1 OPERATING SYSTEM STRUCTURES PROCESS MANAGEMENT A process is a program in execution: (A program is passive, a process active.) A process.
Chapter 18 Three Operating Systems
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
OPERATING SYSTEMS Introduction
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Guide To UNIX Using Linux Third Edition
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
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.
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
Stack Management Each process/thread has two stacks  Kernel stack  User stack Stack pointer changes when exiting/entering the kernel Q: Why is this necessary?
Week 6 Operating Systems.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
UNIX System Administration OS Kernal Copyright 2002, Dr. Ken Hoganson All rights reserved. OS Kernel Concept Kernel or MicroKernel Concept: An OS architecture-design.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
 What is OS? What is OS?  What OS does? What OS does?  Structure of Operating System: Structure of Operating System:  Evolution of OS Evolution of.
Operating Systems.
Chapter 6 Operating System Support. This chapter describes how middleware is supported by the operating system facilities at the nodes of a distributed.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
CE Operating Systems Lecture 3 Overview of OS functions and structure.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Distributed System Concepts and Architectures 2.3 Services Fall 2011 Student: Fan Bai
X-WindowsP.K.K.Thambi The X Window System Module 5.
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
1 Lecture 6 Introduction to Process Management COP 3353 Introduction to UNIX.
UNIX Unit 1- Architecture of Unix - By Pratima.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Operating Systems.
OPERATING SYSTEM BASICS. What is an operating system and what does it do? The operating system has two basic functions: –communicates with the PC.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Find – used to find files corresponding to a certain criteria find starting_dir matching_criteria [options] Examples: find /usr –name startx find /usr.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
Introduction to Operating Systems Concepts
Overview of Linux Fall 2016 Dr. Donghyun Kim
2. OPERATING SYSTEM 2.1 Operating System Function
Credits: 3 CIE: 50 Marks SEE:100 Marks Lab: Embedded and IOT Lab
Operating System.
CASE STUDY 1: Linux and Android
Introduction to Operating System (OS)
Chapter 2: Operating-System Structures
Threads, SMP, and Microkernels
Chapter 2: System Structures
CSE 303 Lecture 1 introduction to Linux/Unix environment
X Windows.
Lecture Topics: 11/1 General Operating System Concepts Processes
Lecture 4- Threads, SMP, and Microkernels
Operating Systems Lecture 1.
Linux Professor Sabol.
Chapter 2: Operating-System Structures
Outline Operating System Organization Operating System Examples
OPERATING SYSTEMS STRUCTURES
Introduction to Operating Systems
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Operating System By Prakash G Asnani
Lecture 6 Introduction to Process Management
Presentation transcript:

LINUX An Introduction Wan Ahmad Tajuddin Wan Abdullah Universiti Malaya KL ACGRID-II 2009

Operating Systems (OS) machine OS user System software that abstracts the interface to various resources provided by low-level system hardware and software; and that manages these resources.  distinct resources can be shared effectively  the programmer can use system resources easily [user provided with a virtual machine] * user interface * process management and scheduling * job and session management * device management * timing management * memory management * file management * error handling * reliability * security * monitoring * accounting * system management

OS: Processes independent task units which are executed e.g. a batch job, the shell of a login session, a program run The execution of processes is controlled by the kernel and is interlaced – this part of the kernel is known as the despatcher or low-level scheduler when a process ends, or uses up its scheduled time, or cannot be continued because an interrupt occurred or the process is waiting for something or the error trap suspends the execution of the process while an error is handled the despatcher executes the next process in the process queue according to priority

OS: Kernel most basic layer of operating system, which communicates with hardware provides environment where processes can exist:  handling of interrupts  changing processor usage from process to process  implements mechanisms for communication and coordination between processes (semaphores, shared memory, message passing, input/output redirection, pipes,…), including deadlock avoidance and recovery Thread – flow of control between processes; a process can spawn daughter processes and so on shares process resources

OS: File structure Files are contained in directory and subdirectory (which is also a kind of file) structure which is tree-like. Uppermost directory – main file directory or root directory (‘/’ or ‘\’). / /A/B /C /B/D/B/E /B/D/f /A/b /A/a/B/g /B/D/ e /B/D/c /C/h

Open Systems implement open specifications adequately for interfaces, services, and support formats which allow application software built appropriately to be ported onto various types of systems with minimal change, to interoperate with other applications on local and remote systems, and to interact with users in a style which facilitates user mobility portability, interoperability, non-dependency, flexibility, integrability Open specification a public specification maintained by an open public consensus process, to include current new technology and which is consistent with standards. increased consultation with respect to system and application provider due to advantage from clear description of system needs Example of open operating system: UNIX System V Example of open specifications: POSIX (Portable Operating System Interface)

LINUX UNIX-like OS initially for PCs Open source – free, standards, community, modifiable Monolithic kernel – single standard system calls Distribution suites (Red Hat, Ubuntu, Scientific Linux, …) - together with other open source (esp GNU) applications CLI: shells (c-shell, Bourne again,...) GUI: based on X-Windows Desktop environments (KDE, Gnome,...)

Legacy of UNIX programmers environment simple user interface many, simple utilities that can be combined to perform powerful functions hierarchical file system simple interface to devices consistent with file format, supports I/O redirection and piping multi-user, multi-process system architecture independent and transparent to the user. Written in C – close to C, portable

LINUX User Interface Command Line Interface – shells (processes) Line commands: command –flags arguments Arguments can be e.g. filenames stdin (standard input – keyboard), stdout (standard output – monitor), device drivers (e.g. /dev/lp) are treated like files Graphics User Interface – based on X Windows (processes)

LINUX File system Hierachical tree-like structure of (sub)directories and files Root directory: / Subdirectories usually e.g.: Filenames have extensions after a dot, usually describing type of file e.g. prog.c, files.tar, files.tar.gz binBinary (executable) programs homeHome directories of users etcMiscellaneous system files devSpecial files for I/O devices libLibraries usrUser files tmpTemporary files

File can be link to other file or (sub)directory File protection mode: defines priviledges for owner, group (of users where owner is in), (the rest of the) world, e.g. rwxr-x--x : owner can read, write, execute; group can read, execute; world can execute only (binary: ) Superuser (root) have all priviledges to all files

Networking Protocol: TCP/IP Hosts: domain name address (host.domain), IP address (number: xxx.xxx.xxx.xxx) Services:  Remote terminal – telnet, ssh  File transfer – ftp, scp  Web – http  Mail – smtp  etc

Hands on o Introduction o GUI, tools and scripts o [System: processes and threads] o [Network programming]