Notite de curs/seminar/laborator

tc examples: examples
grep/sed/awk: problems-gsa
bash: problems-bash
C: problems-c
Example output of the "last" command: last.txt
Example contents of the /etc/passwd file passwd.txt

--------------------------------------------------------------------------

Problems from seminary nr. 1
Problems
Problems from seminary nr. 2
Problem 1
Problem 2
Problem 3
A collection of a few useful things
Problems from seminary nr. 3
Exec
Signal handling (V1)
Signal handling (V2)
Using kill to send SIGINT from a C program
Create process that runs a command and time its execution
Problems from seminary nr. 4
Pipe
For this example, Process A creates the FIFOs using the mkfifo function.
Fifo send array of int (proc A)
Fifo send array of int (proc B)
For this example, the FIFOs must be created using the mkfifo command.
Fifo send string (proc A)
Fifo send string (proc B)
Dup2
Bonus fifo checks
Problems from seminary nr. 5
Creating threads
Pass parameter and get return value from thread
Mutex
Read-Write Lock
Problems from seminary nr. 6
Simple barrier example
Barriers
Alternating threads with conditional variables
Semaphores
Problems from seminary nr. 7
Semaphore for processes with shared memory
Create shared memory for an array and for a struct
Read from shared memory an array and a struct