File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,7 @@ Process states represent the dynamic lifecycle of computational execution. Under
99
99
100
100
``` c
101
101
#include < stdio.h>
102
- #include < stdlib.h>
103
102
#include < unistd.h>
104
- #include < pthread.h>
105
103
106
104
// Process state enumeration
107
105
typedef enum {
@@ -156,16 +154,14 @@ int main() {
156
154
### For Linux/Unix Systems:
157
155
```bash
158
156
# Compile the program
159
- gcc -o process_states process_states.c -pthread
157
+ gcc -o process_states process_states.c
160
158
161
159
# Run the executable
162
160
./process_states
163
161
```
164
162
165
163
### Compilation Flags Explanation
166
164
- ` -o process_states ` : Specify output executable name
167
- - ` -pthread ` : Link with POSIX threads library
168
- - Ensures proper compilation with thread support
169
165
170
166
## 8. References and Further Reading
171
167
You can’t perform that action at this time.
0 commit comments