ProDeveloperTutorialonSeptember 15, 2026 Creating Linux Process using system() and difference between system() and fork() in C In the previous chapters we saw what a process can be created in 3 different ways. In this chapter we shall have a look at the first they…
ProDeveloperTutorialonSeptember 15, 2026 Linux Process introduction Linux Process Introduction: What is a process? Accordin to UNIX standards, IEEE Std 1003.1, 2004 Edition, process is “an address space with…
ProDeveloperTutorialonSeptember 15, 2026 Threads synchronization using condition variable functions Below are the API’s used for pthread condition variables 1. To initialize a condition: int pthread_cond_init(pthread_cond_t *cond,…
ProDeveloperTutorialonSeptember 15, 2026 Threads synchronization using Mutex variable 1. To initialize a mutex, use below API: int pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr); attributes for…
ProDeveloperTutorialonSeptember 15, 2026 Process creation using exec family functions The exec family of system calls are used to replace the process image. It means, when you create a new process using fork(), the child process…
ProDeveloperTutorialonSeptember 15, 2026 Creating a process using fork() system call Introduction to fork() system call: “fork()” system call is used to create a new process. The child process returns zero and the…
ProDeveloperTutorialonSeptember 15, 2026 SYSTEM V Semaphores in C using semget, semctl, semop system V system calls in Linux In the previous chapter we learned about shared memory. And there is a problem of race condition when there are multiple process are trying to…
ProDeveloperTutorialonSeptember 15, 2026 SYSTEM V Shared Memory Segments in C using shmget, shmat, shmdt system V system calls in Linux Introduction on Shared Memory: 1. Shared memory is used to share the same resources between multiple processes. 2. If means that you allocate…
ProDeveloperTutorialonSeptember 15, 2026 SYSTEM V Message Queue in C using msgget, msgsnd, msgctl system V system calls in Linux Message queue introduction: 1. In this chapter we shall learn about system V message queue. 2. Two or more process can communicate with each…
ProDeveloperTutorialonSeptember 15, 2026 Creating FIFO in C using “mknod()” system call in Linux 1. FIFO or named pipe exist as a device special file in the file system. 2. FIFO can be used to process of different ancestry. 3. They can…