[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-newbie
Subject:    Re: wake_up_interruptible
From:       Michał Nazarewicz <m.nazarewicz () samsung ! com>
Date:       2010-05-12 7:35:09
Message-ID: op.vck0ovk47p4s8u () pikus
[Download RAW message or body]

On Tue, 11 May 2010 22:32:46 +0200, Fundu <fundu_1999@yahoo.com> wrote:
> what happen when you call wake_up_interruptible and there are no task waiting on \
> that wait queue right then. 
> But say after some time a task comes along and start waiting (after the \
> wake_up_interruptible is called). Would that task be not wait at all because there \
> was a pending wake up

It will be waiting for another wake up.

> What i'm looking for is a mechanism where by any old wake if not acted upon are \
> lost.

Semahore may be a good option.

-- 
Best regards,                                        _     _
> Humble Liege of Serenely Enlightened Majesty of  o' \,=./ `o
> Computer Science,  Michał "mina86" Nazarewicz       (o o)
+----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic