RE: query regarding scheduling

2009-02-09 Thread sudheer.divakaran
-Original Message- From: Henrik Austad [mailto:hen...@austad.us] Sent: Tue 2/10/2009 12:18 AM To: kernelnewbies@nl.linux.org Cc: Himanshu Chauhan; Mulyadi Santosa; Sudheer Divakaran (WT01 - Product Engineering Services) Subject: Re: query regarding scheduling On Monday 09 February 2009

Re: query regarding scheduling

2009-02-09 Thread Henrik Austad
On Monday 09 February 2009 16:56:40 Himanshu Chauhan wrote: > On Mon, 2009-02-09 at 21:16 +0700, Mulyadi Santosa wrote: > > Hi... > > > > On Mon, Feb 9, 2009 at 2:57 PM, wrote: > > > Hi All, > > > Please look at the following code from the article Sleeping in the > > > Kernel > > > > > > http://w

Re: query regarding scheduling

2009-02-09 Thread Himanshu Chauhan
On Mon, 2009-02-09 at 21:16 +0700, Mulyadi Santosa wrote: > Hi... > > On Mon, Feb 9, 2009 at 2:57 PM, wrote: > > Hi All, > > Please look at the following code from the article Sleeping in the Kernel > > > > http://www.linuxjournal.com/node/8144/print > > > > 1 set_current_state(TASK_INTERRUPTIB

Re: query regarding scheduling

2009-02-09 Thread Mulyadi Santosa
Hi... On Mon, Feb 9, 2009 at 2:57 PM, wrote: > Hi All, > Please look at the following code from the article Sleeping in the Kernel > > http://www.linuxjournal.com/node/8144/print > > 1 set_current_state(TASK_INTERRUPTIBLE); > 2 spin_lock(&list_lock); > 3 if(list_empty(&list_head)) { > 4

query regarding scheduling

2009-02-09 Thread sudheer.divakaran
Hi All, Please look at the following code from the article Sleeping in the Kernel http://www.linuxjournal.com/node/8144/print 1 set_current_state(TASK_INTERRUPTIBLE); 2 spin_lock(&list_lock); 3 if(list_empty(&list_head)) { 4 spin_unlock(&list_lock); 5 schedule(); 6 spi