본문 바로가기
리눅스 활용리눅스마스터 2급 · 2015년06월13일 · 26/80

26.다음 중 시그널의 번호와 이름이 알맞게 연결된 것은?

1
2 - SIGHUP
2
9 - SIGKILL정답
3
15 - SIGCONT
4
20 –SIGSTOP

해설

시그널은 어떤 이벤트가 발생했음을 알리기 위해 프로세스에게 전달되는 소프트웨어 인터럽트다. (*참고>> 인터럽트는 마이크로프로세서(CPU)가 프로그램을 실행하고 있을 때, 입출력 하드웨어 등의 장치나 또는 예외상황이 발생하여 처리가 필요할 경우에 마이크로프로세서에게 알려 처리할 수 있도록 하는 것을 말한다.) 시그널번호 와 종류 1=> SIGHUP: 연결된 terminal이 hangup하였을 때(terminate) 2=> SIGINT: interrupt key(^C)를 입력하였을 때(terminate) 3=> SIGQUIT: quit key(^\)를 입력하였을 때(terminate+core) 4=> SIGILL: illegal instruction을 수행하였을 때(terminate+core) 5=> SIGTRAP: implementation defined hardware fault (terminate+core) 6=> SIGABRT: abort시스템 호출을 불렀을 때(terminate+core) 7=> SIGBUS: implementation defined hardware fault (terminate+core) 8=> SIGFPE: arithmetic exception, /0, floating-point overflow (terminate+core) 9=> SIGKILL: process를 kill하기 위한 signal, catch 혹은 ignore될 수 없는 signal임(terminate) 10=> SIGUSR1: user defined signal 1 (terminate) 11=> SIGSEGV: invalid memory reference (terminate+core) 12=> SIGUSR2: user defined signal 2 (terminate) 13=> SIGPIPE: reader가 terminate된 pipe에 write할 경우 발생(terminate) 14=> SIGALRM: alarm시스템 호출 후timer가 expire된 경우(terminate) 15=> SIGTERM: kill시스템 호출을 보내는 software termination signal (terminate) 16=> SIGCHLD: child가 stop or exit되었을 때parent에게 전달되는 신호(ignore) 17=> SIGCONT: continue a stopped process (continue/ignore) 18=> SIGSTOP: sendable stop signal, cannot be caught or ignored (stop process) 19=> SIGTSTP: stop key(^Z)를 입력하였을 때(stop process) 20=> SIGTTIN: background process가 control tty로 부터 read할 경우(stop process) 21=> SIGTTOU: background process가 control tty로 write할 경우(stop process) 22=> SIGURG: urgent condition on IO, socket의OOB data (ignore) 23=> SIGXCPU: exceeded CPU time limit (terminate+core/ignore) 24=> SIGXFSZ: exceeded file size limit (terminate+core/ignore) 25=> SIGVTALRM: virtual time alarm, setitimer, (terminate) 26=> SIGPROF: profiling time alarm, setitimer, (terminate) 27=> SIGWINCH: terminal window size changed, (ignore) 28=> SIGIO: 어떤 fd에서 asynchronous I/O event가 발생하였을 경우(terminate/ignore) 29=> SIGPWR: system power fail (terminate/ignore) 30=> SIGSYS: bad argument to system call (terminate+core)

이 시험을 직접 풀어보세요

실전과 동일한 CBT 환경에서 시간 제한 연습

회원가입 없이 CBT 풀기