Preview

Process Management in Linux

Good Essays
Open Document
Open Document
4243 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Process Management in Linux
Process Handling in Linux
POS 420
October 11, 2005

In Linux processes communicate with each other and with the kernel to coordinate their activities. Linux supports a number of Inter-Process Communication (IPC) mechanisms. Signals and pipes are two of them but Linux also supports the System V IPC mechanisms named after the Unix TM release in which they first appeared. Signals are one of the oldest inter-process communication methods used by Unix TM systems. The common Linux shells all allow redirection. For example $ ls | pr | lpr pipes the output from the ls command listing the directory's files into the standard input of the pr command which paginates them. Finally the standard output from the pr command is piped into the standard input of the lpr command which prints the results on the default printer. (2005,www.tldp.org)
They are used to signal asynchronous events to one or more processes. A signal could be generated by a keyboard interrupt or an error condition such as the process attempting to access a non-existent location in its virtual memory. Signals are also used by the shells to signal job control commands to their child processes. There are a set of defined signals that the kernel can generate or that can be generated by other processes in the system, provided that they have the correct privileges. Processes can choose to ignore most of the signals that are generated, with two notable exceptions: neither the SIGSTOP signal which causes a process to halt its execution nor the SIGKILL signal which causes a process to exit can be ignored. Otherwise though, a process can choose just how it wants to handle the various signals. Processes can block the signals and, if they do not block them, they can either choose to handle them themselves or allow the kernel to handle them. If the kernel handles the signals, it will do the default actions required for this signal. For example, the default action when a process receives the SIGFPE (floating point

You May Also Find These Documents Helpful

  • Good Essays

    Unix processes are instances of an executed program. UNIX, being a multi task operating system handles thousands of processes at a time. We are able to check on what processes are currently running by typing ps at the UNIX prompt. Depending on the options used with the ps command, we can see different outcomes such as $ps -ef | more. This will list all the processes in the system. Some items you might see using the ps command are PID which is the process ID number, TT or TTY shows the controlling terminal for the process. If there is no controlling terminal then a question mark is used.…

    • 567 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    NT1430 Lab2 Joy Brewer

    • 989 Words
    • 4 Pages

    4. What is a Process? A process is the execution of a command by Linux (they can communicate with each other) What Utility provides communication between processes where output of one process provide input for another? pipe…

    • 989 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Intro to Unix Project 2

    • 636 Words
    • 3 Pages

    3- Description of redirection: Redirection is usually thought of in terms of redirection operators, which can be used to switch both the source and the destination of standard streams of data in commands. They can be classified as input, output, error and pipe.…

    • 636 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Sharing allows several processes to access the same portion of main memory (Stallings, 2012). When there are a number of processes executing the same program it is beneficial to allow each process to access the same copy of the program rather than have its own separate copy (Stallings, 2012,). The memory management system must therefore…

    • 573 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    17. What utility connects standard output of one command to standard input of another command?…

    • 1070 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The Wall Street Journal article (Sept. 24 2012) notes how “American Airlines continued to rack up high numbers of flight delays and cancellations, blaming a dispute with its pilots union. The union, meanwhile, denied that pilots disrupted flights unnecessarily."…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    6. Customer involvement reflects the ways in which customers become part of the process and the extent of their participation.…

    • 5515 Words
    • 23 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Which type of departmentalization achieves economies of scale by placing people with common skills and orientations into common units?…

    • 1434 Words
    • 6 Pages
    Satisfactory Essays
  • Better Essays

    Process Design

    • 1435 Words
    • 6 Pages

    Chase, F., Jacobs, F., and Aquilano, N., (2005, p. 630) reflect that MRP relates to dependent demand for a higher level item. Tires, wheels, and engines are dependent demand items based on the demand for automobiles; whereas demand for a product relates to independent demand, because the market conditions influence a specific type of product, rather…

    • 1435 Words
    • 6 Pages
    Better Essays
  • Good Essays

    The Process of a Process

    • 689 Words
    • 3 Pages

    English is a subject every student is this county is required to take. What comes hand in hand with English? Essays (majority of peoples’ worst nightmare when entering the course) come hand in hand with English. Now depending on the teacher (professor) a “Process Analysis” otherwise known as a “How To” paper is just one of the necessary dissertations for the year. Have you ever wished for someone to just give you a step-by-step procedure when trying to write those dreadful papers? Reading this will benefit those who sit at the desk in their room for hours scratching their idealess heads hoping for the light bulb to suddenly glow bright above them when trying to prepare a “How To” essay.…

    • 689 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Fork System Call

    • 258 Words
    • 2 Pages

    Exp#2 fork system call Aim To create a new child process using fork system call. Algorithm 1. Declare a variable x to be shared by both child and parent. 2. Create a child process using fork system call.…

    • 258 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    In Linux, the two processing scheduling algorithms used for real time processes is Round Robin and First-in-First-out (FIFO). These two scheduling algorithms allow real-time processes to be executed in a timely fashion, and a time-sharing algorithm is used for all other processes. The time-sharing algorithms are prioritized and “credit-based”. The process with the most credits is selected, and while a process is running, it loses credits every time the timer interrupts occur. A process may no longer run if it has no more credits remaining. If the process that uses the time-sharing algorithm has no credits remaining, the system assigns credits. Also meaning the higher priority processes will then receive more credits.…

    • 487 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C…

    • 10509 Words
    • 54 Pages
    Satisfactory Essays
  • Powerful Essays

    programming

    • 21645 Words
    • 157 Pages

    NETWORK PROGRAMMING BIT 4206 BIT 4206 Network Programming Course Outline Prerequisites: BIT 3102 Network Management BIT 3201 Object Oriented Programming Objectives: • By the end of the course the learner should be able to: Have knowledge about Unix Technologies (IPC, POSIX threads, Unix file system) • Be able to develop client-server network applications on the internet, based on UNIX/linux Course Outline An overview of C++ Inheritance, Polymorphism, Encapsulation, Templates, Dynamic memory management, handling exceptions Networks and protocols Circuits vs packets Internet protocol The global IP internet Transmission control protocol…

    • 21645 Words
    • 157 Pages
    Powerful Essays
  • Powerful Essays

    Any Subject

    • 1354 Words
    • 6 Pages

    This article is just an introduction of Unix operating system to people who don’t any knowledge about Unix operating system . Generally speaking , people don’t need to understand too much about the details about a software or a system , the most important thing is people should know how to use these software or systems as a user . So what I’m going to do is to offer a little help to people who know nothing about Unix system and try to use Unix system as a tool in their work .…

    • 1354 Words
    • 6 Pages
    Powerful Essays