Q) How to use SIGALRM under 1sec?

A) Use ualarm() instead of alarm().

ualarm(useconds_t useconds, useconds_t interval);

--> useconds(단위: microsecond)만큼 지난 뒤 SIGALRM 발생.
      interval이 0이 아니라면 interval(단위는 같음)마다 SIGALRM 발생.

Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/ualarm.html

'Computer' 카테고리의 다른 글

Excel Macro - Row Removal  (0) 2014.10.27
[연습]SRM 624 Div1  (0) 2014.09.04
DFS / BFS 한 단계씩 보여주는 미로찾기(Linux용)  (0) 2014.08.02
Difference between .so and .dll files.  (0) 2014.08.01
SIC/XE Machine Simulator  (0) 2014.05.26