[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: blocking pre-emting



On Thu, Dec 18, 2003 at 11:33:30AM +0530, Senthil Nathan V wrote:
: 
: 1. t = gettime() ;
: 2. t = t + deviation ;
: 3. settime( t )  ;

see adjtimex

: 2. Is there any way I to block pre-emtion at the time of execution of these 
: sequence of statements in user program?

setscheduler(SCHED_FIFO) disables task (but not interrupt) preemption
setscheduler(SCHED_OTHER) reenables task preemption

Brian Mancuso




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]