Re: File Storage Gadget Driver - a small doubt

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

 



On Mon, 10 Aug 2009, Madhavi Manchala wrote:

> On Fri, Aug 7, 2009 at 7:47 PM, Alan Stern<stern@xxxxxxxxxxxxxxxxxxx> wrote:
> 
> Dear Alan,
> 
> Thanks again for the information.
> 
> > That's not true.  The driver can be made to work asynchronously with
> > only one thread.  All you have to do is implement a queue of incoming
> > commands.  The thread can process the commands one at a time, as they
> > reach the head of the queue.
> 
> In brief, the gadget driver is queuing the incoming commands. This is
> done by the main thread. The other threads will de-queue one command
> at a time and process it. My question is, while one thread processing
> the first command, can another thread process the second command? Can
> two commands be processed in parallel in two different threads?

Yes, they will.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux