Week Fourteen Agenda Announcements Final Exam True/False -100 questions (1 point per question) Multiple Choice - 40 questions (2 points per question)

Slides:



Advertisements
Similar presentations
June 1, 1999Foreground/Background Processing1 Introduction to UNIX H. Foreground/Background Processing.
Advertisements

2.3 InterProcess Communication (IPC) Part A. IPC methods 1. Signals 2. Mutex (MUTual EXclusion) 3. Semaphores 4. Shared memory 5. Memory mapped files.
1 Select and poll and Signals CS 241 April 6, 2012 University of Illinois.
Lesson 10-Controlling User Processes. Overview Managing and processing processes. Managing jobs. Exiting/quitting when jobs have been stopped.
Page 1 Task Control: Signals and Alarms Havilland and Salama’s Unix Systems Programming B. Ramamurthy.
Page 1 Task Control: Signals and Alarms Chapter 7 and 8 B. Ramamurthy.
Process Process: the UNIX abstraction of a stand-along computer that manages resources (memory, CPU, I/O resources) comprising a running program. Processes.
Signals Hua LiSystems ProgrammingCS2690Signals. Topics: Sending Signals -- kill(), raise() Signal Handling -- signal() sig_talk.c -- complete example.
1 Signals COS Goals of Today’s Lecture Overview of signals  Notifications sent to a process  UNIX signal names and numbers  Ways to generate.
CSCI2413 Lecture 10 Operating Systems (OS) Inter-process communication phones off (please)
CS Lecture 16 Outline Inter-process Communication (IPC) – Pipes – Signals Lecture 161CS Operating Systems 1.
B. RAMAMURTHY Pag e 1 Task Control: Signals and Alarms Chapter 7 and 8 7/2/2015.
CSc 352 Signal Handling in Unix Saumya Debray Dept. of Computer Science The University of Arizona, Tucson
Process Description and Control A process is sometimes called a task, it is a program in execution.
COMP5102 Lecture 4 Operating Systems (OS) Inter-process Communication phones off (please)
Process states inWindows 2000 and Linux Module 2.1.
Chapter 4 The UNIX Shells (Bourne shell, Korn shell, C shell)‏ Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice.
Xuan Guo Chapter 4 The UNIX Shells Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, Original Notes.
UNIX Processes. The UNIX Process A process is an instance of a program in execution. Created by another parent process as its child. One process can be.
Process Description and Control Chapter 3. Major Requirements of an OS Interleave the execution of several processes to maximize processor utilization.
Operating Systems Yasir Kiani. 22-Sep Agenda for Today Review of previous lecture Process management commands: bg, fg, ^Z, jobs, ^C, kill Thread.
The process concept (section 3.1, 3.3 and demos)  Process: An entity capable of requesting and using computer resources (memory, CPU cycles, files, etc).
Chapter 3 Process Description and Control
Managing processes and services. 1. How Linux handles processes 2. Managing running processes 3. Scheduling processes.
SILICON VALLEY UNIVERSITY CONFIDENTIAL 1 Introduction to UNIX / Linux - 8 Dr. Jerry Shiao, Silicon Valley University.
The kernel considers each program running on your system to be a process A process lives as it executes, with a lifetime that may be short or long A process.
Operating Systems CSE 411 CPU Management Sept Lecture 9 Instructor: Bhuvan Urgaonkar.
* POSIX-Defined Signals * Signaling Processes * Signal Mask * sigaction * kill and sigaction * alarm Topics.
 Advanced programming for the unix environment (chapters 7,8,9 of both editions + chapter 13(2 nd edition))
Week Fourteen Agenda Announcements Final Exam True/False -100 questions (1 point per question) Multiple Choice - 40 questions (2 points per question)
Agenda  Working with Processes: Purpose Running Programs within same process (execl, execlp, execle, execv, execvp, execve) “Spawning” other process (fork,
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. C H A P T E R S I X Exception Handling.
Announcements Final exam test dates. December 11 through 18. Presentations Hash Function If there are problems associated with taking the final exam,
Unix Process Model Simple and powerful primitives for process creation and initialization. fork syscall creates a child process as (initially) a clone.
Scis.regis.edu ● CS 468: Advanced UNIX Class 5 Dr. Jesús Borrego Regis University 1.
Week Fourteen Agenda Announcements Final Exam True/False -100 questions (1 point per question) Multiple Choice - 40 questions (2 points per question)
Silberschatz, Galvin and Gagne  Operating System Concepts Process Concept An operating system executes a variety of programs:  Batch system.
Concurrent Processes Processes can concurrently run same program. Processes can concurrently run same program. Processes can start other processes. Processes.
Signals and Signal Processing CIS 370 Lab 7 Umass Dartmouth.
Signals (Chap 10 in the book “Advanced Programming in the UNIX Environment”) Acknowledgement : Prof. Y. Moon at Kangwon Nat’l Univ.
1 Signals (continued) CS 241 April 9, 2012 University of Illinois.
UNIX Signals * POSIX-Defined Signals * Signaling Processes * Signal Mask * sigaction * kill and sigaction * alarm * Interval Timers * POSIX.1b Timers *
Interprocess Communication Mechanisms. IPC Signals Pipes System V IPC.
Signals. Introduction r A signal is a mechanism for notifying a process that an event has occurred. m When a signal is sent to a process is normal execution.
CSC Advanced Unix Programming, Fall, 2008 Welcome back to UNIX System Programming! Monday, September 22, class 5.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
© 숙대 창병모 1 제 10 장 신호 (Signal). © 숙대 창병모 2 Contents 1. Signal Concepts 2. signal() 3. Interrupted System Calls 4. kill() /raise() 5. alarm() pause() 6.
Today’s topic Environment variables Signal. The list of environment variables –try ‘env’ –Environment variables can be defined in shell setenv DISPLAY.
Process Description and Control Chapter 3. Source Modified slides from Missouri U. of Science and Tech.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 9 Working.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop VI Scheduling & Process Management Professional.
ACCESS CONTROL. Components of a Process  Address space  Set of data structures within the kernel - process’s address space map - current status - execution.
S -1 Processes. S -2 wait and waitpid (11.2) Recall from a previous slide: pid_t wait( int *status ) wait() can: (a) block; (b) return with status; (c)
Unix System Administration Controlling Processes Chapter 5.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Signals.
Process Relationships Chien-Chung Shen CIS/UD
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
Operating Systems Inter-Process Communication Signals Moti Geva
UNIX signals.
Task Control: Signals and Alarms Chapter 7 and 8
CSC Advanced Unix Programming, Fall 2015
Operating Systems Lecture 12.
Signals Tanzir Ahmed CSCE 313 Fall 2018.
Inter-Process Communication ENCE 360
Task Control: Signals and Alarms Chapter 7 and 8
Chapter 4 The UNIX Shells (Bourne shell, Korn shell, C shell)‏
The Bash Shell Bash Programming
CSE 451: Operating Systems Spring 2006 Module 4 Processes
Process Management and System Monitoring
Signals.
Presentation transcript:

Week Fourteen Agenda Announcements Final Exam True/False -100 questions (1 point per question) Multiple Choice - 40 questions (2 points per question) Essay -10 questions (2 point per question) Final Exam Total Points 200 Review questions on the final exam If there are problems associated with taking the exam, call me at and be persistent.

Week Fourteen Agenda AgendaWeek Fourteen December 9, 2013 Open Source presenter(s) are: Student name: Stacy Zimmerman Open source topic: Brain Workshop (14) Student name: Paul Burkholder Open source topic: Asterisk (14) Student name: Paula Godley-Cooper Open source topic: Funambol (14) Student name: Anne Salmon Open source topic: CamStudio (14) Student name: Clarence Irby Open source topic:Ganglia Monitoring System (14)

Week Fourteen Agenda Agenda Week Fourteen December 9, 2013 Open Source presenter(s) are: Student name: Nathan Stockwell Open source topic: DD-WRT (14)

Week Fourteen Agenda Final Exam Questions When a child process ends, a SIGCHLD signal is sent to the parent process from the kernel indicating their child exited (True). When a child process ends, the kernel sends a SIGCHLD signal to the parent. If the parent responses immediately with a wait () system call, all memory and resources allocated to the process are de-allocated (True). To remove a zombie process from a system, the kernel sends a SIGHUB signal to the parent process (False). The /etc/inittab file for RHEL 6.0 does not contains a list of run levels that can be used during the boot process. (True) Would the initdefault run level variable be found in the /etc/inittab file for RHEL 6.0? (True)

Week Fourteen Agenda Final Exam Questions The wait action keyword is used when a specific run level is entered for action. (True) The respawn action keyword is used to re-start a process whenever it has terminated. (True) When the system run level is changed, any running processes that are not specified for the new run level are killed. The unwanted processes are first sent a SIGTERM signal, then a SIGKILL signal. (True) The runlevel is changed by having a privileged user run telinit, which sends appropriate signals to init, telling it which runlevel to change to.

Week Fourteen Agenda Linux Signals are: Signal Name Number Description SIGHUP 1 Hangup (POSIX) SIGINT 2 Terminal interrupt (ANSI) SIGQUIT 3 Terminal quit (POSIX) SIGILL 4 Illegal instruction (ANSI) SIGTRAP 5 Trace trap (POSIX) SIGIOT 6 IOT Trap (4.2 BSD) SIGBUS 7 BUS error (4.2 BSD) SIGFPE 8 Floating point exception (ANSI) SIGKILL 9 Kill(can't be caught or ignored) (POSIX) SIGUSR1 10 User defined signal 1 (POSIX) SIGSEGV 11 Invalid memory segment access (ANSI) SIGUSR2 12 User defined signal 2 (POSIX)

Week Fourteen Agenda Linux Signals are: SIGPIPE 13 Write on a pipe with no reader, Broken pipe (POSIX) SIGALRM 14 Alarm clock (POSIX) SIGTERM 15 Termination (ANSI) SIGSTKFLT 16 Stack fault SIGCHLD 17 Child process has stopped or exited, changed (POSIX) SIGCONT 18 Continue executing, if stopped (POSIX) SIGSTOP 19 Stop executing(can't be caught or ignored) (POSIX) SIGTSTP 20 Terminal stop signal (POSIX) SIGTTIN 21 Background process trying to read, from TTY (POSIX)

Week Fourteen Agenda Linux Signals are: SIGTTOU 22 Background process trying to write, to TTY (POSIX) SIGURG 23 Urgent condition on socket (4.2 BSD) SIGXCPU 24 CPU limit exceeded (4.2 BSD) SIGXFSZ 25 File size limit exceeded (4.2 BSD) SIGVTALRM 26 Virtual alarm clock (4.2 BSD) SIGPROF 27 Profiling alarm clock (4.2 BSD) SIGWINCH 28 Window size change (4.3 BSD, Sun) SIGIO 29 I/O now possible (4.2 BSD) SIGPWR 30 Power failure restart (System V) Command to display signal value: kill –l SIGTERM

Week Fourteen Agenda Linux Signals You can specify the signal using either a number (such as 9) or a mane (such as SIGKILL).The signals you’re most likely to use are 1 (SIGHUP, which terminates interactive programs and causes many daemons to reread their configurationfiles), 9 (SIGKILL, which causes the process to exit without performing routine shutdown tasks), and 15 (SIGTERM, which causes the process to exit but allows it to close open files). If you don’t specify a signal, the default is 15 (SIGTERM). The kill program will kill only those processes owned by the user who runs kill. The exception is if that user is root; the superuser may kill any user’s processes.

Week Fourteen Agenda Linux Signals Signals can be passed to programs by the kernel even if you don’t use the kill command. For instance, when you log out of a session, the programs you started from that session are sent the SIGHUP signal, which causes them to terminate. If you want to run a program that will continue running even when you log out, you can launch it with the nohup program: nohup program options This command causes the program to ignore the SIGHUP signal. It can be handy if you want to launch certain small servers that may legitimately be run as ordinary users.

Week Fourteen Agenda Questions and Issues Your final exam status will be displayed on the Announcement page the same as the midterm exam.