LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-19-2017, 11:08 PM   #1
vinothk91
LQ Newbie
 
Registered: May 2013
Location: Chennai,India
Posts: 6

Rep: Reputation: Disabled
What is the maximum timeout we can give for setitimer() function in linux .


What is the maximum timeout value we can give for linux setitimer functin. I am giving 24 Hours as timeout in seconds 86400 sec, the timer gets created , but it never expires .
 
Old 12-20-2017, 09:15 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
You need to post an excerpt ... in code-tags, please ... of your actual source-code. Also note the return-code from each call and the contents of the parameter-structures before and after each call.

However, when dealing with intervals of this length, I would suggest using other facilities – such as cron or systemd "events." There's really no point in "waiting around" (literally ...) "all day," when there are already other daemons doing that.
 
  


Reply

Tags
linux kernels, timer, timer-countdown, torvalds



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
How the setitimer in linux is working in low leve ? What is the maximum timeout we can give to it ? vinothk91 Linux - Kernel 1 11-03-2017 03:19 PM
sleep function disrupted by setitimer ? niamov Programming 1 09-11-2011 12:28 PM
Timeout function using Python vishnu_sreekumar Programming 1 08-03-2009 04:52 AM
function to calculate maximum value suchi_s Programming 5 10-26-2004 10:38 AM
select function as timeout? frostmagic Programming 2 02-09-2004 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration