LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-07-2004, 07:35 AM   #1
arvind_tyche
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
Timed execution of a function


Hi,

sometime back I used open GL on Tru 64, I had used a call to register a function to get executed after some interval. Now I need help on AIX, I need to execute a function after some interval. using pthreads is one alternative I have but need to know is that feature there or not.
I found a timeout utility in sys/streams.h, but it is only for _KERNEL...I wonder what should be done if I need timed invocation. Signals & using sigalrm is also a work around.
Pls tell me if a function exists which does the sigalrm thing internally....?
thanks a lot for all who read .... respond !!
 
Old 05-07-2004, 08:25 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Not sure, and I don't know AIX nor Tru64, but you may want to check these functions (see their man pages):

sleep(), usleep() or nanosleep()
alarm()
setitimer()
pause()
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a PHP function at timed intervals linux_pioneer Programming 5 09-26-2004 01:22 PM
what are the Hexadecimal function and ASCII function in Perl Bassam Programming 1 06-03-2004 01:44 AM
A main can be changed by a function local without passing anything to the function? ananthbv Programming 10 05-04-2004 01:31 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM
Timed Execution Undead Programming 5 09-13-2001 02:57 AM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration