chaque philosophe peut imprimer son num

This commit is contained in:
hugogogo
2021-12-12 10:28:34 +01:00
parent fc987249ac
commit 2294c73e6a
3 changed files with 34 additions and 18 deletions

View File

@@ -29,18 +29,18 @@ thread :
external function :
memset : fill memory with a constant byte
printf : format and print data
malloc : allocate dynamic memory
free : free dynamic memory
write : write to a file descriptor
usleep : suspend execution for microseconds intervals
gettimeofday : get time
pthread_create : create a new thread
pthread_detach :
pthread_join
pthread_mutex_init
pthread_mutex_destroy
pthread_mutex_lock
pthread_mutex_unlock
- `memset` : fill memory with a constant byte
- `printf` : format and print data
- `malloc` : allocate dynamic memory
- `free` : free dynamic memory
- `write` : write to a file descriptor
- `usleep` : suspend execution for microseconds intervals
- `gettimeofday` : get time
- `pthread_create` : create a new thread
- `pthread_detach` :
- `pthread_join`
- `pthread_mutex_init`
- `pthread_mutex_destroy`
- `pthread_mutex_lock`
- `pthread_mutex_unlock`