Move source in the folder

This commit is contained in:
Fabio Scotto di Santolo
2024-08-27 09:19:33 +02:00
parent da93cb8369
commit 53f42a2032
16 changed files with 0 additions and 0 deletions

15
threads/pid_manager.h Normal file
View File

@@ -0,0 +1,15 @@
#if !defined(__PID_MANGER_H__)
#define __PID_MANGER_H__
// Crea e inizializza una struttura per rappresentare i pid;
// restituisce -1 in caso di insuccesso e 1 in caso di successo.
int allocate_map(void);
// Alloca e restituisce un pid, restituisce -1 se non è possibile
// assegnare un PID (tutti i pid sono in uso).
int allocate_pid(void);
// Rilascia un pid
void release_pid(int pid);
#endif