Skip to content

Commit c2bc15d

Browse files
committed
PCB added
1 parent 8c5b1de commit c2bc15d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"C_Cpp.errorSquiggles": "Disabled"
3+
}

pcb.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef PCB
2+
#define PCB
3+
4+
#include <pthread.h>
5+
6+
struct Process_Control_Block
7+
{
8+
int pid;
9+
char *state;
10+
int pLength;
11+
int total_time_spent;
12+
pthread_cond_t cond_var;
13+
int virtual_runtime;
14+
};
15+
16+
#endif

0 commit comments

Comments
 (0)