discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] fusb and select(2)


From: Daniel O'Connor
Subject: Re: [Discuss-gnuradio] fusb and select(2)
Date: Sun, 15 Oct 2006 17:21:06 +0930
User-agent: KMail/1.9.4

On Sunday 15 October 2006 11:53, address@hidden wrote:
> [*] Not counting threads.  Quoting Alan Cox: "Computers are state
> machines.  Threads are for people who can't program state machines."

USB's IO model is not well suited to select() style applications since it 
doesn't allow it to tell the OS how much data should be read in advance 
(since there is no real way for a USB device to flag it has data to be sent 
to the app).

Async. IO is a much closer match but support for that in your OS may be 
limited. (Especially for raw device nodes and USB in particular)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: pgpAZgjFJbvhA.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]