Multi-threading access to device drivers.
From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 11/07/04
- Previous message: Andre Oppermann: "Re: Removing T/TCP and replacing it with something simpler"
- Next in thread: Garrett Wollman: "Re: Multi-threading access to device drivers."
- Reply: Garrett Wollman: "Re: Multi-threading access to device drivers."
- Reply: Kirk McKusick: "Re: Multi-threading access to device drivers."
- Reply: John-Mark Gurney: "Re: Multi-threading access to device drivers."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: arch@freebsd.org Date: Sun, 07 Nov 2004 00:39:20 +0100
Assume a device driver which is not Giant-handicapped.
Assume an I/O path which does not need Giant to get from
read(2) to the device driver.
Assume a SMP machine.
Assume a process with two threads on two CPUs, both
doing read(fd, buf, len) at the same time.
Should we let both reads into the driver at the same time ?
If so, which uio_offset do we hand them ?
-- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Andre Oppermann: "Re: Removing T/TCP and replacing it with something simpler"
- Next in thread: Garrett Wollman: "Re: Multi-threading access to device drivers."
- Reply: Garrett Wollman: "Re: Multi-threading access to device drivers."
- Reply: Kirk McKusick: "Re: Multi-threading access to device drivers."
- Reply: John-Mark Gurney: "Re: Multi-threading access to device drivers."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|