From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 10d4db,7cc297aede2958cf,start X-Google-Attributes: gid10d4db,public X-Google-Language: ENGLISH,ASCII Return-Path: Path: g2news1.google.com!news1.google.com!news.glorb.com!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Mon, 13 Sep 2004 15:03:51 CST From: "Frederick Noronha (FN)" Subject: GNU Portable Threads (Pth) 2.0.2 released (fwd) X-X-Sender: fred@news.goa.bytesforall.org Message-id: MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_hXNK4SOTZOhYPesqe1SI3w)" X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on ak47.algebra.com X-Spam-Report: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 Newsgroups: comp.os.linux.announce X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAQUX9KiFvAtx2nXvNAQFsxQH/UfOsaGYeqNdeGkZD4+Hf1GwJQ/UYNdxF 6qwMcQ+HeqgSUTwcEGI31hvo8S3sFfo6mGcX0v4RyPCyjT0sWTa5Dg== =Z+aH Xref: g2news1.google.com comp.os.linux.announce:323 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --Boundary_(ID_hXNK4SOTZOhYPesqe1SI3w) Content-type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-transfer-encoding: QUOTED-PRINTABLE ---------- Forwarded message ---------- GNU Pth 2.0.2 is now available: ftp://ftp.gnu.org/gnu/pth/pth-2.0.2.tar.gz Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution (aka `multithreading') inside event-driven applications. All threads run in the same address space of the server application, but each thread has its own individual program-counter, run-time stack, signal mask and errno variable. The thread scheduling itself is done in a cooperative way, i.e., the threads are managed by a priority- and event-based non-preemptive scheduler. The intention is, that this way one can achieve better portability and run-time performance than with preemptive scheduling. The event facility allows threads to wait until various types of events occur, including pending I/O on filedescriptors, asynchronous signals, elapsed timers, pending I/O on message ports, thread and process termination, and even customized callback functions. Additionally Pth provides an optional emulation API for POSIX.1c threads (`Pthreads') which can be used for backward compatibility to existing multithreaded applications. Finally, Pth guarranties its fixed set of API functionality on all platforms, i.e., functions like pth_poll(3), pth_readv(3) or pth_writev(3) are always available, even if the particular underlaying platform does not actually support their functionality (through the system calls poll(2), readv(2), writev(2), etc). Although Pth is very feature-rich, it is a rather small threading library. It consists only of approximately 7,000 line (or 300 KB) of ANSI C code which are auto-configured with approximately 400 lines (or 60 KB) of Autoconf/m4 macros and which are documented by approximately 3,000 lines (or 150 KB) of documentation. Additionally the sources are documented with approximately 3,600 additional lines of comments. As a result, the whole source tree is just about 1.5 MB in size and fits into a small tarball less than 350 KB in size. This allows Pth to fit very well even into the source tree of other applications without bloating it up very much. Pth was successfully tested on FreeBSD, NetBSD, OpenBSD, BSDI, GNU/Linux, Solaris, HPUX, Tru64 (OSF/1), AIX, IRIX, UnixWare, SCO OpenServer, SINIX, ReliantUNIX, ISC, AmigaOS, Rhapsody (MacOS X), FTX, AUX and Win32/Cygwin. And it should should automatically adjust itself to remaining Unix platforms, too. Changes between 2.0.1 and 2.0.2 (13-Jul-2003 to 12-Sep-2004): *) Added hard syscall wrappers for send(2) and recv(2). [NetBSD pkgsrc patches] *) Internally handle errors returned from pth_event() in order to pass them upstream to the caller in pth_high.c functions. [Ralf S. Engelschall, NetBSD pkgsrc patches] *) Fix syscall wrapper for sendto(2). [NetBSD pkgsrc patches] *) Use "(char *)NULL" instead of plain "NULL" in last argument to execl(2) to avoid GCC 3.5's "warning: missing sentinel in function cal= l". [Ralf S. Engelschall] *) Workaround Autoconf/m4 problems in pth.m4 by using "m4_define" instead of just "define" and no using m4_undefine at all. [Dr. Andreas Mueller ] *) Avoid side-effects by defining _XOPEN_SOURCE only temporarily for inclusion of instead of permanently. [Graham Nash ] *) Workaround GCC 2.x and 3.5 (3.4 worked fine) macro parsing behaviour by using a pre-declared function pointer type "typedef int (*pth_event_func_t)(void *);" instead of using an inlined "int (*)(void *)". [Ralf S. Engelschall, Robert Anderson ] *) Fixed prototype for pthread_attr_setschedparam(3) from to use a "const struct sched_param *" argument. [Rafael =C1vila de Esp=EDndola ] *) Upgraded build environment to GNU libtool 1.5.8 and GNU shtool 2.0.1. [Ralf S. Engelschall] Ralf S. Engelschall rse@engelschall.com www.engelschall.com _______________________________________________ GNU Announcement mailing list http://lists.gnu.org/mailman/listinfo/info-gnu= --Boundary_(ID_hXNK4SOTZOhYPesqe1SI3w)-- ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################