SFL-DEV102 - UNIX, POSIX et GNU/Linux System APIs

DEV102 - UNIX, POSIX et GNU/Linux System APIs

This course reviews the different system APIs available under Linux and the degree of portability that it offers with traditional POSIX/UNIX systems. The student will write simple system programs with typical system functionalities of higher complexity such as sockets and threads.

Syllabus

BSD Sockets

  • Available socket API under Linux
  • Differences between Linux version and traditional UNIX
  • Difference between Linux version and Win32 Winsock API
  • Implementation

POSIX Threads

  • Review thread creation and management
  • Review implications on GNU standard C library (glibc) functions and on non re-entrant functions
  • Implementation

POSIX IPC : Inter-Process Communication

  • Protect critical sections with mutex
  • Synchronize processes with conditional variables
  • Use UNIX Domain Sockets to preserve a client-server approach with a broadband communication channel
  • Lock parts of the file system with fcntl()
  • Create shared memory zones
  • Share file descriptors

POSIX.4 : I/O Asynchrone (AIO)

  • Record a call back
  • I/O error management
  • Implementation

 

Audience

Linux programmers.

Prerequisites

Knowledge of C language and of GNU/Linux and its environment, SFL101 and DEV101.

Class training

  • Duration : 3 day(s)
  • Price : 1195 $CAD
  • Register : Calendar