Skip to content

Commit 6b4928a

Browse files
committed
day-02: Code Example: remove unnecessary includes
This patch removes unnecessary stdlib.h & pthread.h from code example section. Compilation and execution instructions section is also modified accordingly to reflect the change. Signed-off-by: Luman Rahman <[email protected]>
1 parent ef06203 commit 6b4928a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/day-02-process-states-and-transitions.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ Process states represent the dynamic lifecycle of computational execution. Under
9999

100100
```c
101101
#include <stdio.h>
102-
#include <stdlib.h>
103102
#include <unistd.h>
104-
#include <pthread.h>
105103

106104
// Process state enumeration
107105
typedef enum {
@@ -156,16 +154,14 @@ int main() {
156154
### For Linux/Unix Systems:
157155
```bash
158156
# Compile the program
159-
gcc -o process_states process_states.c -pthread
157+
gcc -o process_states process_states.c
160158
161159
# Run the executable
162160
./process_states
163161
```
164162

165163
### Compilation Flags Explanation
166164
- `-o process_states`: Specify output executable name
167-
- `-pthread`: Link with POSIX threads library
168-
- Ensures proper compilation with thread support
169165

170166
## 8. References and Further Reading
171167

0 commit comments

Comments
 (0)