Re: time delay

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

 





On 14 Feb 2006 12:47:33 -0000, kiran kumar <kiran07_nitk@xxxxxxxxxxxxxx> wrote:

  hi
    how to introduce time delay in kernel 2.4.20-8 .
i was using time dealy using mdelay which is in the dead loop not allowing kernel to do other activities. i want to use delay such a way that kernel should do its normal activities besides being in the delay!
how to implement this! is there any function to do so!\
pls help me in this!


use schedule_timeout() function. This will put your process to sleep on a timer queue and then call the schedule() function. When your time is out, your process will again be put in running state.

note, this might take more time than the temeout you mention (esp when machine is busy), as you process might not get schedule again in time.

-Gaurav

 

warm regards,
kiran kumar s.k
N.I.T.K,surathkal



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux