Summary - Linux System Programming - Lecture Notes, Summaries of Linux skills

Topics covered in this lecture handout are: Summary, Basic, File, Process, Threads, Facilities, Pipe, Widget.

Typology: Summaries

2011/2012

Uploaded on 10/24/2012

alia_maru
alia_maru 🇮🇳

4.5

(41)

57 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Summary
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Summary - Linux System Programming - Lecture Notes and more Summaries Linux skills in PDF only on Docsity!

Summary

What did we learn?

  • Week 36: Basic
    1. Compile functions independently and build up a library; link the main pro- gram to the library.
    2. Static library and Shared library.
    3. Location of standard header files and standard libraries.
    4. Shell commands: ls -l, ps -ax, pipes, redirecting.
    5. Shell script: interactive shell program- ming.
  • Week 37-38: File
    1. UNIX system (hierarchy view)
    2. File is generalized in UNIX system. 1
  1. Thread creation, termination, join.
  2. Synchronize the threads using mutex lock.
  3. Example: multi-processes read and write parallel, multi-threads read and write with binary semaphores, creating an array of philosophers,
  • Week 44-45: IPC facilities
  1. Blocking and non-blocking message pass- ing
  2. Basic idea of semaphores(different from the semaphore that used for synchro- nizing threads)
  3. overview of shared memory
  4. Example: Multi-processes read and write synchronized by semaphores
  • Week 46: Pipe
    1. Basic mechanism of the process pipe(uses shell commands)
    2. Basic mechanism of pipe call(build up a pipe with two ends - file descriptors)
    3. Basic feature of named pipe: FIFO(used as a regular file in the UNIX system)
    4. Example: Writer writes onto the FIFO and reader reads from the FIFO
  • Week 47: Socket
    1. Socket connection(Socket domain, Socket types)
    2. Example: Socket on local file system(server and client)
  • Week 48: Gtk+ widget Window, but- tons, Text entry, menu and tool bar, events handling.