Posts tagged #os
-
How a file system finds your file
A file's name lives in a directory, not in the file. The system follows the path one name at a time until it reaches the inode.
-
How a deadlock happens
A deadlock is two threads each holding a lock the other one needs. Neither can move, so the program hangs.
-
How a process differs from a thread
A process owns its memory. The threads inside it share that memory, and each thread keeps its own stack and registers.
-
How the stack and the heap differ
The stack stores fixed-size values in last-in, first-out order. The heap holds data of any size, and you reach it through a pointer.