Skip to content

Tag Archives: system-programming

Pre-requisites : Fork System Call Fork bomb Bash fork bomb : :(){:&:&};: Working in Unix : In Unix-like operating systems, fork bombs are generally written… Read More
Prequisite: pipe() System call When I/O block in pipe() happens? Consider two processes, one process that’s gathering data(read data) in real time and another process… Read More
Prerequisite : I/O System calls Conceptually, a pipe is a connection between two processes, such that the standard output from one process becomes the standard… Read More
Important Terminology What is the File Descripter?? File descriptor is integer that uniquely identifies an open file of the process. File Descriptor table: File descriptor… Read More
The accept() system call with the connection-based socket types(SOCK_STREAM, SOCK_SEQPACKET). It extracts the first connection request on queue of pending connections for the listening socket,… Read More
Prerequisite : Fork system call, Wait system call A signal is a software generated interrupt that is sent to a process by the OS because… Read More
We use g++ compiler to turn provided C code into assembly language. To see the assembly code generated by the C compiler, we can use… Read More
Write a C program that doesn’t terminate when Ctrl+Z is pressed. It prints a message “Cannot be suspended using Ctrl+Z” and continues execution. We can… Read More
Prerequisite : Fork System callA call to wait() blocks the calling process until one of its child processes exits or a signal is received. After… Read More
Why are the first 1024 ports restricted to the root user only? Binding is an integral step for server side socket. It’s like providing some… Read More
We have discussed Three methods of Zombie Prevention. This article is about one more method of zombie prevention. Zombie Process: A process which has finished… Read More
dup() The dup() system call creates a copy of a file descriptor. It uses the lowest-numbered unused descriptor for the new descriptor. If the copy… Read More
Wake-on-LAN (WoL) is an Ethernet or token ring computer networking standard that allows a computer to be turned on or awakened by a network message.… Read More
Prerequisite : Memory Layout of C Programs In a typical process, a stack segment of program contains local variables along with information that is saved… Read More
This article aims at giving an introduction to magic numbers and file headers, how to extract a file based on magic numbers, and how to corrupt… Read More