sane-project-website/old-archive/2000-02/0016.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=&lt;CA256879.0079EF10.00@d73mta01.au.ibm.com&gt;"><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>
&nbsp;Mark Sitkowski
<BR>
&nbsp;Design Simulation Systems Ltd
<BR>
&nbsp;14 Loddon Street
<BR>
&nbsp;Box Hill North, Victoria 3129 Australia
<BR>
------------------------------------------------------------------------
<BR>
&nbsp;phone: (613-9) 897-1375 fax: (613-9) 897-1376
<BR>
&nbsp;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=&lt;CA256879.0079EF10.00@d73mta01.au.ibm.com&gt;">marks@iaccess.com.au</A>
<BR>
&nbsp;Web: www.angelfire.com/de/designsim
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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=&lt;CA256879.0079EF10.00@d73mta01.au.ibm.com&gt;">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>