ftruncate

File I/O in Linux

1.0 Input and Output (I/O) All programs need to interact with the external world which makes I/O important. Programs store data in files which provide large persistent storage. In this post we will look at the system calls and functions for file I/O and the issues that govern the program and I/O device interaction. 2.0 …

File I/O in Linux Read More »

POSIX Shared Memory in Linux

1.0 Shared Memory Shared memory is the fastest method of interprocess communication (IPC) under Linux and other Unix-like systems. The system provides a shared memory segment which the calling process can map to its address space. After that, it behaves just like any other part of the process’s address space. 2.0 Why is shared memory …

POSIX Shared Memory in Linux Read More »