由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help! How to set up a timer?
相关主题
[转载] multi-timer programming in unix, question?Re: 为什么emacs自动给我加^M.
Linux/Unix下时间的精度 (转载)Re: Where to download MP3 player for UNIX?
[转载] help!!! recvfrom() doens't terminateRe: unix下怎么把一个大文件分成若干个小文件?
About the serial port--SOS!SOS!怎样写 makefile
does Linux has real time timer?一个计算机学术网站
What is a jiffy in linux?Re: 菜鸟问题:UNIX下怎么改文件的日期?
[转载] alarm, pause 又一问coconut 申请 unix BZ
[转载] ALERM CLOCK请问在UNIX中该如何设screensaver
相关话题的讨论汇总
话题: timer话题: set话题: alarm话题: up话题: problem
进入Unix版参与讨论
1 (共1页)
s******n
发帖数: 2
1
I met a problem when I tried to set up a timer. The program
will stop
after some time and shows "Alarm clock". Who knows or meets
the problem?
Or could you show me your timer?
Thank you!
f*****[email protected]
m*****e
发帖数: 4193
2
use signals
SIGALRM or sth

【在 s******n 的大作中提到】
: I met a problem when I tried to set up a timer. The program
: will stop
: after some time and shows "Alarm clock". Who knows or meets
: the problem?
: Or could you show me your timer?
: Thank you!
: f*****[email protected]

s******n
发帖数: 2
3
Yes, I used SIGALRM, but sometimes the program will stop and
it gives
a "Alarm clock" message.
I do not know why.
Thank you!

【在 m*****e 的大作中提到】
: use signals
: SIGALRM or sth

m*****e
发帖数: 4193
4
check any Unix programming book about this. You can not do much in a
signal handler. Unix sucks on this. Probably using a thread is better.
Don't ask me, I am not en expert on programming threads in C.

【在 s******n 的大作中提到】
: Yes, I used SIGALRM, but sometimes the program will stop and
: it gives
: a "Alarm clock" message.
: I do not know why.
: Thank you!

1 (共1页)
进入Unix版参与讨论
相关主题
请问在UNIX中该如何设screensaverdoes Linux has real time timer?
Unix下怎么解加密的.zip文件?What is a jiffy in linux?
UNIX下编程求助[转载] alarm, pause 又一问
Help -- How to display the list of available printers[转载] ALERM CLOCK
[转载] multi-timer programming in unix, question?Re: 为什么emacs自动给我加^M.
Linux/Unix下时间的精度 (转载)Re: Where to download MP3 player for UNIX?
[转载] help!!! recvfrom() doens't terminateRe: unix下怎么把一个大文件分成若干个小文件?
About the serial port--SOS!SOS!怎样写 makefile
相关话题的讨论汇总
话题: timer话题: set话题: alarm话题: up话题: problem