[LINUX:27615] Ynt: [LINUX:27574] Re: Linux'te Sleep wakeup mekanizması?

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Tunca (att@yimpas.net.tr)
Date: Mon 14 May 2001 - 18:29:11 EEST


>> ------------------------------
>> static inline void __sleep_on(struct wait_queue **p, int state){
>> unsigned long flags;
>> struct wait_queue wait = { current, NULL };
>> if (!p)
>> return;
>> if (current == task[0])
>> panic("task[0] trying to sleep");
>> current->state = state;
>> add_wait_queue(p, &wait);
>> save_flags(flags);
>> sti();
>> schedule();
>> remove_wait_queue(p, &wait);
>> restore_flags(flags);
>> }
>> ------------------------------
>schedule() dan wakeup cagirilana kadar geri donmuyorsun da ondan.
schedule'dan geri döndügü zaman o kaynagi kulllana process farkli bir
process oluyor byük bir iltimalle degil mi?

 
 Listeden cikmak icin:
          unsub linux
 mesajini listeci@bilkent.edu.tr adresine gonderiniz.
   Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
 Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
 Liste arsivinin adresi: http://listweb.bilkent.edu.tr/


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.