Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 1874
- QA
- IT
- 균형잡힌 세상
- 해바
- File 조작
- 백준
- For Beginners
- Parenthesis
- process control
- 시프
- Zero That Out
- file IO
- 전자책
- 2941
- Baekjoon
- c++
- 5622
- 입력 버퍼
- The Balance of the World
- 바샤
- 브런치
- LJESNJAK
- system programming
- 10773
- c
- BAKA
- Process Communication
- 4949
- 시스템 프로그래밍
Archives
- Today
- Total
목록signal (1)
해바
Lab #11
두 개의 프로그램 parent.c(실행 파일 이름은 parent)와 child.c(child)를 다음과 같이 작성한다 : parent에서는 자식 프로세스(child)를 fork()와 exec() 시스템 호출을 이용하여 시작한다. parent에서 "parent: child initiated"라고 출력한다. child에서는 30sec 동안 sleep() 한다. 30sec가 되기 전에 parent에서 자식 프로세스에게 kill()을 사용하여 SIGTERM을 보낸다. child가 terminate 된 후 parent에서 다음과 같이 출력한다 : "Parent: child terminated" // parent.c #include #include #include #include int main() { pid_t ..
System Programming
2019. 11. 18. 12:27