*BSD News Article 56618


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.advocacy
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!chi-news.cic.net!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!netmbx.de!unlisys!bolzen.in-berlin.de!luthien.in-berlin.de!wagner
From: wagner@luthien.in-berlin.de (Olaf Wagner)
Subject: Re: Pthreads support,(Was: Win32 CreateThread()....)
Followup-To: comp.unix.bsd.freebsd.misc,comp.unix.advocacy
X-Newsreader: TIN [version 1.2 PL2]
Organization: 'Holistic Computing Services'
Message-ID: <DJDFJD.LKG@luthien.in-berlin.de>
References: <4ab85f$idq@news.voicenet.com> <DJBt1u.GFD@tigger.jvnc.net> <4adcqh$4fg@times.tfs.com>
Date: Sun, 10 Dec 1995 12:47:36 GMT
Lines: 95
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:10210 comp.unix.advocacy:12041

Julian Elischer (julian@mailhub.tfs.com) wrote:
> We are (well not myself, I'm just co-ordinating) adding 
> threads support to the Libc at the moment..
> we can expect it to be complete within a month..
> we are also adding TWO (count'em 1, 2) pthreads packages to the 
> standard system and there's a third on the horizon..
> The first is  the MIT pthreads package which has been 
> written to be portable across a large number of OS's .
> the second is a variant of the first with some differences in such
> things as signal handling, and  has some thread pre-emtive capabilities.
> This is being put in just to give more breadth..
> the third, is a pthreads package from a florida University,
> but I don't have any mor einformation other than that..
> (in fact if anyone has more info please contact me)
...
> > If anyone knows 
> >anything about plans for POSIX threads in FreeBSD (user-level and/or 
> >kernal-based) please let me know; I would like to see if Dartmouth's "BlitzMail" 
> >could be ported to FreeBSD and it requires POSIX threads or "cthreads".

The pthreads package from the Florida State University maintained
by Frank Mueller works well on FreeBSD 1.1.5, FreeBSD 2.0.5 and FreeBSD 2.1.0.

We're using it for development of multithreaded point-of-sale applications
on Unix platforms here in Berlin. I found it rather more convicing than
the port of the MIT package to FreeBSD (there's too much missing
there).

Here is the last post from the pthreads mailing list:
> From mueller@informatik.hu-berlin.de Sat Dec  2 00:30:45 1995
> Return-Path: <mueller@informatik.hu-berlin.de>
> Received: by susan.logware.de (Smail3.1.29.1)
> 	  from hp832.informatik.hu-berlin.de (141.20.20.50) with smtp
> 	  id <m0tLeug-000a1XC>; Sat, 2 Dec 95 00:30 MET
> Received: from eiche.fb-inf2 by hp832.informatik.hu-berlin.de with smtp
> 	(Smail3.1.28.1 #16) id m0tLYX6-0009U3C; Fri, 1 Dec 95 17:41 MEZ
> Message-Id: <m0tLYX6-0009U3C@hp832.informatik.hu-berlin.de>
> Date: Fri, 1 Dec 95 17:41 MEZ
> From: mueller@informatik.hu-berlin.de (Frank Mueller)
> To: mueller@informatik.hu-berlin.de
> Subject: Pthreads Mailing List, Message 15, Dec  1, 1995
> Status: OR
> 
> Pthreads Mailing List, Message 15, Dec  1, 1995:
> ================================================
> 
> 1. BUGS:
> 
>   .bug fix: pthread_siggeset2set ambiguous evaluation order
>    (problem and fix by: capints!mariska@relay.NL.net (Mariska Hoogenboom)).
>   .bug fix: SCO 3.2 gettimeofday and timerisset incompatible, macro redef.
>   .bug fix: FreeBSD io.S result from syscalls read/write mistakenly cleared
>    (problem and fix by: wagner@logware.de (Olaf Wagner)).
>   .bug fix: negative errno returned in io.S for Linux
>   .bug fix: ifdefs for new POSIX types in FreeBSD 2.x and SCO 3.x
>   .bug fix: malloc-package ifdefs for Linux and SCO
> 
> 2. RELEASE:
> 
>   .VME MiThOS changes included (STAND_ALONE)
>   .malloc lib included
> 
> The release of version 2.7 is now available on ftp.
> 
> -- Frank
> 
> ftp-site:  ftp.cs.fsu.edu
> internet#: 128.186.121.114
> directory: /pub/PART
> files:     pthreads.tar.Z, pthreads_serf92.ps.Z, pthreads_usenix93.ps.Z,
> 	   pthreads_interface.ps.Z, rtoss94.ps.Z, pthreads_tr94-091.ps.Z
> 
> mail-list: mueller@informatik.hu-berlin.de	Subject: subscribe-pthreads
> WWW URL:   http://www.informatik.hu-berlin.de/~mueller/projects.html
> 
> Report any bugs or problems to:
> 
> pthreads-bugs@ada.cs.fsu.edu

One feature that is still wanting is full support for non-blocking
(only thread-blocking) i/o: as of now, there are only system call
mappers for read() and write(), but you can extend the system easily,
if you really need that immediately.

There even is a first prototype of a thread-aware version of gdb
for these threads, but it might take some more weeks (or months)
until this will be in a state to release it...

-- 
/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 
|| Olaf Wagner           | wagner@luthien.in-berlin.de (private) | 
|| Sanderstrasse 13      | olaf@logware.de (work)                |
|| 12047 Berlin          | phone: 49 30  623 36 35               |
|| Germany / Deutschland | please don't call before 9 o'clock    |
\/////////////////////////////////////////////////////////////////