| int main(void) | |
| { | |
| int pid; | |
| pid = fork(); | |
| if (pid < 0) { | |
| printf(1, "Fork failed\n"); | |
| exit(); | |
| } | |
| else if (pid == 0) { | |
| sleep(1000); | |
| printf(1, "Child process with PID: %d has lifetime: %d deciseconds\n",getpid(), get_process_lifetime()); | |
| exit(); | |
| } | |
| else { | |
| wait(); | |
| printf(1, "Parent process with PID: %d has lifetime: %d deciseconds\n",getpid(), get_process_lifetime()); | |
| exit(); | |
| } | |
| } | |
Xet Storage Details
- Size:
- 537 Bytes
- Xet hash:
- 34d8cc8399e80c9e9024942633d6aff8a367242d29b25d3ac6c84c0ea23fe11d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.