Linux System Programming
CtrlK
English
English
  • Introduction
  • Chapter 1 - Linux Basics
    • What is system programming?
    • Working Environment
    • Remote Access
    • How to get help in Linux?
    • Files, directories, and file systems
    • File Transfer Protocol
    • Processes in Linux
    • Users and Groups
    • File Permissions
    • Manage Users and Groups
    • Standart Streams
    • Redirecting and Pipelines
    • Nano Text Editor
    • Linux Basics Exercise
  • Chapter 2 – Programming
    • Compiling
    • Compiler
    • Source Code
    • Assembly
    • Object
    • Binary
    • Execute
    • Libraries
    • Archiver
    • Object Files
    • Static and Dynamic Library
    • Library Example
    • Debugging
    • Programmnig Exercise
  • Chapter 3 – Files and File System
    • Files
    • File System
    • Wirking with Files
    • Streams
    • Files Library
    • Opening ang CLosing File
    • Read File Introduction
    • Read File Example
    • Read and Write File Intro
    • Write File Example
    • Searching and Sparse Files
    • Make a sparse file
    • Lock File Introduction
    • Lock and Write Example
    • Files and File System Exercise
  • Chapter 4 – Processes
    • Processes
    • Processes Management
    • Processes Methods
    • Execute Command
    • Show Source Example
    • Forking
    • Print Processes Identifiers
    • Wait and exit child process
    • Execute and print state
    • Zombies and Signals
    • Zombie Game
    • Processes Exercise
  • Chapter 5 – Inter Process Communication
    • Inter Process Communication Methods
    • Signals
    • Signals List
    • Signals Management
    • Signal Handler
    • Signal Wait
    • Reviewing Signals
    • Displaying information about the signals
    • Reentrancy
    • Anonymous and Named Pipes
    • Working with Pipes
    • Anonymous Pipe Example
    • Names Pipe Example
    • Inter Process Communication Exercise
  • Chapter 6 - Inter Process Communication Syncronization
    • Message Queue
    • Message Queue Libraries
    • Determining the common data
    • Message Server Example
    • Message Client Example
    • Shared Memory
    • Shared Memory Libraries
    • Determining the common data
    • Shared Memory Server Example
    • Shared Memory Client Example
    • Semaphores
    • Semaphores Libraries
    • Determining the common data
    • Semaphore Server Example
    • Semaphore Client Example
    • Inter Process Communication Syncronization Exercise
  • Chapter 7 – Sockets
    • Linux Sockets
    • Wirking with Sockets in C
    • Using Unix Sockets
    • File Socket Server Example
    • File Socket Client Example
    • Socket Pair
    • Socket Pair Example
    • Network Sockets
    • Network Socket Server Example
    • Network Socket Client Example
    • Sockets Exercise
  • Chapter 8 – Threads
    • Threads Introduction
    • Threads Library
    • Threads Management Fnctions
    • Creating Threads
    • Finalizing Threads
    • Joining Threads
    • Joining Threads Example
    • Threads Cancellations
    • Threads Cancellation Types
    • Thread Cancellation Example
    • Threads Exercise
  • Chapter 9 - Threads Syncronization
    • Threads Exit
    • Managing Threads Exit
    • Tread Exit Example
    • Why is synchronization necessary??
    • Sync Mechanisms
    • Mutexes
    • When is Locking Necessary?
    • Use of Mutexes
    • Race Conditions
    • Thjread Safe Code
    • Deadlock
    • Creating and Destroing Mutexes
    • Lock and Unlock Mutexes
    • Example of synchronization using a mutex
    • Semaphores Synchronizing
    • Example of Synchronization Using a Semaphore
    • Threads Syncronization Example
  • Chapter 10 – Daemons
    • What are the daemons?
    • Daemon Sceleton
    • Chat Daemon
Powered by GitBook
On this page

Was this helpful?

Chapter 6 - Inter Process Communication Syncronization

  • Опашка за съобщения

  • Библиотеки за работа със съобщения

  • Определяне на общите данни

  • Сървър за съобщения

  • Клиент за съобщения

  • Споделена памет

  • Библиотеки за работа със споделена памет

  • Определяне на общите данни

  • Сървър за памет

  • Клиент за памет

  • Семафори

  • Библиотеки за работа със семафори

  • Определяне на общите данни

  • Семафор Сървър

  • Семафор Клиент

  • Упражнение за синхронизация на комуникация между процеси

PreviousInter Process Communication ExerciseNextMessage Queue

Last updated 3 months ago

Was this helpful?