All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich du Toit <hdutoit@tlabs.ac.za>
To: linux-c-programming mailing list <linux-c-programming@vger.kernel.org>
Subject: wait_queue's
Date: Tue, 03 Dec 2002 10:01:58 +0200	[thread overview]
Message-ID: <3DEC64F6.4050003@tlabs.ac.za> (raw)

Hello

I'm busy writing a device driver.
This device driver exports one char device.

Now the problem it that when 2 programs try to write to this device at 
the same time...
Well it works but they don't get queue fairly.

Both processes write's get blocked.. But for a long time in a row only 
one seem to write and the otherone stays block.
I think the problem is that the kernel wait queue is a LIFO structure 
and not a FIFO

Anyway in which I could change it to a FIFO? or any other ideas?

Thanks
-Heinrich



                 reply	other threads:[~2002-12-03  8:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DEC64F6.4050003@tlabs.ac.za \
    --to=hdutoit@tlabs.ac.za \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.