kopia lustrzana https://gitlab.com/sane-project/website
128 wiersze
5.0 KiB
HTML
128 wiersze
5.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: fork or pthread for async I/O?</TITLE>
|
|
<META NAME="Author" CONTENT="msitkows@au1.ibm.com (msitkows@au1.ibm.com)">
|
|
<META NAME="Subject" CONTENT="Re: fork or pthread for async I/O?">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: fork or pthread for async I/O?</H1>
|
|
<!-- received="Wed Feb 2 14:06:02 2000" -->
|
|
<!-- isoreceived="20000202220602" -->
|
|
<!-- sent="Thu, 3 Feb 2000 09:08:21 +1100" -->
|
|
<!-- isosent="20000202220821" -->
|
|
<!-- name="msitkows@au1.ibm.com" -->
|
|
<!-- email="msitkows@au1.ibm.com" -->
|
|
<!-- subject="Re: fork or pthread for async I/O?" -->
|
|
<!-- id="CA256879.0079EF10.00@d73mta01.au.ibm.com" -->
|
|
<!-- inreplyto="fork or pthread for async I/O?" -->
|
|
<STRONG>From:</STRONG> <A HREF="mailto:msitkows@au1.ibm.com?Subject=Re:%20fork%20or%20pthread%20for%20async%20I/O?&In-Reply-To=<CA256879.0079EF10.00@d73mta01.au.ibm.com>"><EM>msitkows@au1.ibm.com</EM></A><BR>
|
|
<STRONG>Date:</STRONG> Wed Feb 02 2000 - 14:08:21 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0017.html">Oliver Rauch: "Re: fork or pthread for async I/O?"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0015.html">Oliver Rauch: "Re: xscanimage and Gimp Menu Location"</A>
|
|
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0013.html">Ingo Wilken: "fork or pthread for async I/O?"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0017.html">Oliver Rauch: "Re: fork or pthread for async I/O?"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0017.html">Oliver Rauch: "Re: fork or pthread for async I/O?"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#16">[ date ]</A>
|
|
<A HREF="index.html#16">[ thread ]</A>
|
|
<A HREF="subject.html#16">[ subject ]</A>
|
|
<A HREF="author.html#16">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi,
|
|
<BR>
|
|
<P>To begin with, fork() and pipe() have nothing to do with Posix, but have
|
|
<BR>
|
|
been Unix system calls since the dawn of time, and are executed inside the
|
|
<BR>
|
|
kernel.
|
|
<BR>
|
|
In theory, pthreads are also executed in kernel space, within the same
|
|
<BR>
|
|
process context but, if your kernel has not been compiled to be
|
|
<BR>
|
|
multi-threaded, the threads execute in user space, and just look like
|
|
<BR>
|
|
lightweight processes. Any advantage is overcome by the huge software
|
|
<BR>
|
|
overhead, (like maintaining mutexes, etc) necessary to house-keep the
|
|
<BR>
|
|
threads.
|
|
<BR>
|
|
Add to that, the fact that different versions of Unix (like AIX or Solaris)
|
|
<BR>
|
|
use slightly different implementations of pthreads with each release, and
|
|
<BR>
|
|
my advice would be, forget it. I think portability is more important, for a
|
|
<BR>
|
|
public software package.
|
|
<BR>
|
|
<P>Best regards,
|
|
<BR>
|
|
Mark
|
|
<BR>
|
|
<P>------------------------------------------------------------------------
|
|
<BR>
|
|
Mark Sitkowski
|
|
<BR>
|
|
Design Simulation Systems Ltd
|
|
<BR>
|
|
14 Loddon Street
|
|
<BR>
|
|
Box Hill North, Victoria 3129 Australia
|
|
<BR>
|
|
------------------------------------------------------------------------
|
|
<BR>
|
|
phone: (613-9) 897-1375 fax: (613-9) 897-1376
|
|
<BR>
|
|
Mobile: 0413-890-777 E-mail: <A HREF="mailto:marks@iaccess.com.au?Subject=Re:%20fork%20or%20pthread%20for%20async%20I/O?&In-Reply-To=<CA256879.0079EF10.00@d73mta01.au.ibm.com>">marks@iaccess.com.au</A>
|
|
<BR>
|
|
Web: www.angelfire.com/de/designsim
|
|
<BR>
|
|
www.asiafind.com/sites/designsim
|
|
<BR>
|
|
------------------------------------------------------------------------
|
|
<BR>
|
|
<P><P><P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20fork%20or%20pthread%20for%20async%20I/O?&In-Reply-To=<CA256879.0079EF10.00@d73mta01.au.ibm.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0017.html">Oliver Rauch: "Re: fork or pthread for async I/O?"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0015.html">Oliver Rauch: "Re: xscanimage and Gimp Menu Location"</A>
|
|
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0013.html">Ingo Wilken: "fork or pthread for async I/O?"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0017.html">Oliver Rauch: "Re: fork or pthread for async I/O?"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0017.html">Oliver Rauch: "Re: fork or pthread for async I/O?"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#16">[ date ]</A>
|
|
<A HREF="index.html#16">[ thread ]</A>
|
|
<A HREF="subject.html#16">[ subject ]</A>
|
|
<A HREF="author.html#16">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Wed Feb 02 2000 - 14:37:12 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|