lab5 Pipe Signals
  • Introduction
  • Signals
    • kill() system call
    • Custom signal handler
  • Knowing about pipe
    • Pipe Overview
    • System call pipe()
  • Learn to use pipe
    • Pipe Creation
    • Pipe with fork
    • Exercise 1
  • Connecting two programs with pipe
    • Implement ls | less in C
  • Shell Examples
    • Get Current Path
    • Change Directory
    • Change Environment Variables
  • Reference
Powered by GitBook
On this page

Was this helpful?

Introduction

Signals are a kind of interrupt to the running process. This tutorial contains some hand-on codes for you to try.

Pipe is a communication mechanism for sending information between processes. In this tutorial, you will learn more about pipe in Linux.

You need to do:

  • Follow the left content step by step to learn how to use pipe.

  • Answer the six questions (Q1-Q6) in Section 1 "Knowing about pipe", the answers can all be found in Section 2 and 3 (A1-A6)

  • There are four programs in this tutorial, compile them, run them, understand them.

After that, you should know:

  • What pipe really is.

  • How pipe works.

  • How to use pipe.

At the last section, some useful functions for the shell are included for your reference.

Prepared by Lu TANG and Calvin Kam, modified by Yiyao MA.

NextSignals

Last updated 4 months ago

Was this helpful?