Re: Struct completion vs. semaphore

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

 



>>>>> "Jan" == Jan Hudec <bulb@ucw.cz> writes:

Jan> On Wed, Jun 19, 2002 at 12:50:14PM -0400, Alan Stern wrote:
>> What are the essential differences between a struct completion and a
>> semaphore?  When is it more appropriate to use one rather than the other?

Jan> Semaphores are for mutual exclusion. 

Hardly. _Binary_ semaphores are for mutual exclusion. Counting semaphores have other uses, e.g. producer/consumer.

Regards,
-velco
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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