OS 01/31

OS 1/31

Files

Two processes open same file

May modify different part

Kernel data structure after dup(1)

dup(1) duplicate another pointer to same file

Sharing of open files between parent and child after fork

Duplicate the complete table.

Signals

Slow system calls may get interrupted on signals

Errno sets to EINTR

Signals get lost

Signals handling resets after each signal

Signal handler calls non-reentrant functions

A reentrant function is in the middle of function interrupted, signals call again the function from the begining.