Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Threads on different unix systems
@ 1995-07-09  4:00 Andrew Gabriel
  1995-07-10  4:00 ` Jari Tavi
                   ` (6 more replies)
  0 siblings, 7 replies; 27+ messages in thread
From: Andrew Gabriel @ 1995-07-09  4:00 UTC (permalink / raw)


I am starting to look at unix threads, currently experimenting
on Solaris x86 2.4, but eventually I will be looking at other
unix systems too.

I would appreciate any comments about what implementations of
threads there are around. Besides Solaris, I took a quick look
on an ICL DRS 6000 and that appeared to have the same functions
as Solaris. Also I am aware of Posix threads, but I know of no
implementations.

Solaris threads are supported in the kernel, but I have heard
that on some systems the threads support is user level only.
Which other systems support kernel level verses user level
threads?

On a system which supports only user level threads, would a
blocking read in one thread block the whole process? If not,
how are other threads run (without kernel support)?

Thanks.
-- 
Andrew Gabriel                        Andrew@cucumber.demon.co.uk
Consultant Software Engineer



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
  1995-07-10  4:00 ` Jari Tavi
  1995-07-10  4:00 ` Bil Lewis
@ 1995-07-10  4:00 ` John Polstra
  1995-07-11  4:00 ` Interbase
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 27+ messages in thread
From: John Polstra @ 1995-07-10  4:00 UTC (permalink / raw)


In article <805320887snz@cucumber.demon.co.uk>,
Andrew Gabriel  <Andrew@cucumber.demon.co.uk> wrote:
> I am aware of Posix threads, but I know of no
> implementations.

There is a free implementation of Posix threads, with ports to a number
of different Unix variants:

    http://www.mit.edu:8001/people/proven/pthreads.html

    ftp://sipb.mit.edu/pub/pthreads

-- 
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
@ 1995-07-10  4:00 ` Jari Tavi
  1995-07-11  4:00   ` Bob Myers
  1995-07-10  4:00 ` Bil Lewis
                   ` (5 subsequent siblings)
  6 siblings, 1 reply; 27+ messages in thread
From: Jari Tavi @ 1995-07-10  4:00 UTC (permalink / raw)



In article <805320887snz@cucumber.demon.co.uk>, Andrew Gabriel <Andrew@cucumber.demon.co.uk> writes:
|> I am starting to look at unix threads, currently experimenting
|> on Solaris x86 2.4, but eventually I will be looking at other
|> unix systems too.
|> 
|> I would appreciate any comments about what implementations of
|> threads there are around. Besides Solaris, I took a quick look
|> on an ICL DRS 6000 and that appeared to have the same functions
|> as Solaris. Also I am aware of Posix threads, but I know of no
|> implementations.
|> 
|> Solaris threads are supported in the kernel, but I have heard
|> that on some systems the threads support is user level only.
|> Which other systems support kernel level verses user level
|> threads?
|> 
|> On a system which supports only user level threads, would a
|> blocking read in one thread block the whole process? If not,
|> how are other threads run (without kernel support)?
|> 
|> Thanks.
|> -- 
|> Andrew Gabriel                        Andrew@cucumber.demon.co.uk
|> Consultant Software Engineer
|> 

	Digital UNIX implements Kernel threads. Supported interface is POSIX 
	threads but being Mach based system there's (undocumented) Mach 
	threads interface. I'd recommend using POSIX p-threads when ever 
	possible.

	Another more generic source for p-threads is OSF/DCE package, which
	is based on p-threads interface. OSF/DCE (by default) brings you 
	(system independent) user level threads and in some systems (like
	Digital UNIX) support will be Kernel level thread aka. supports 
	directly parallel processing.

	Hope this helps,

		-jari

--
-------------------------------------------------------------------------------
Full-Name:      Jari Tavi			
Organization:   Digital Finland                 Dept:           MKTG/Prod. MGMT
Tel:            +358-0-434 5252	                Fax:            +358-0-452 4046
E-mail:         jpt@rixrax.enet.dec.com
Address:        Digital Equipment Corporation Oy
                Box 16
                FIN-02201 Espoo
                FINLAND
-------------------------------------------------------------------------------
* All opinions are my personal, and do not necessarily represent opinions of
* my employer! 



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
  1995-07-10  4:00 ` Jari Tavi
@ 1995-07-10  4:00 ` Bil Lewis
  1995-07-10  4:00 ` John Polstra
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 27+ messages in thread
From: Bil Lewis @ 1995-07-10  4:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

Andrew Gabriel (Andrew@cucumber.demon.co.uk) wrote:
: I would appreciate any comments about what implementations of
: threads there are around. Besides Solaris, I took a quick look
: on an ICL DRS 6000 and that appeared to have the same functions
  Should, it's the same OS.
: as Solaris. Also I am aware of Posix threads, but I know of no
: implementations.

  As of the last count, POSIX threads still are not completed, so there
CAN'T be any implementations.  However they were supposed to vote in June,
so that may have changed.  SunSoft is currently shipping an Early Access of
the latest draft, 10.  Expect full Pthreads in the next OS after the vote.
(This fall?)

: Solaris threads are supported in the kernel, but I have heard
: that on some systems the threads support is user level only.
: Which other systems support kernel level verses user level
: threads?

Kernel support: Solaris, AIX, IRIS, NT, OSF, OS/2
No kernel: HPUX

: On a system which supports only user level threads, would a
: blocking read in one thread block the whole process? If not,
: how are other threads run (without kernel support)?

: Thanks.
: -- 
: Andrew Gabriel                        Andrew@cucumber.demon.co.uk
: Consultant Software Engineer

--
Det �r den som g�r vilse, som finner de nya v�garna

REPLY TO: Bil.Lewis@SUN.COM
Developer Technical Evangelism



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-11  4:00 ` Interbase
       [not found]   ` <3ttg7h$dkh@engnews2.eng.sun.com>
@ 1995-07-11  4:00   ` Casper H.S. Dik - Network Security Engineer
  1995-07-14  4:00     ` Jeffrey M. Denham
  1995-07-12  4:00   ` Thong Ly
  2 siblings, 1 reply; 27+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 1995-07-11  4:00 UTC (permalink / raw)


interbase@aol.com (Interbase) writes:

>If indeed you do use the underlying system call - read() in this case -
>then yes, the process would block. One approach to handling I/O so that 
>other threads run (without kernel support) would be to use the select() 
>or poll() system calls to determine when I/O can be done. The library 
>can then suspend a thread which requests I/O, do the I/O when the 
>select() or poll() call indicates that it is possible, and re- schedule 
>the thread afterward. To prevent blocking in certain cases, each opened 
>file descriptor can be marked as non- blocking. For the case where a 
>non-blocking call returns a partially filled request under conditions in 
>which the blocking equivalent would not, the library would need some 
>additional logic to preserve the proper semantics. 

Of course there are many advantages to kernel threads over non-kernel
threads:
	- if one thread blocks on a short-term read (normal file read,
	  wait for disk I/O) another thread can get scheduled.
	- if one thread gets a page fault, other threads can continue
	- if you have multiple processors, your threads can use them

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-10  4:00 ` Jari Tavi
@ 1995-07-11  4:00   ` Bob Myers
  0 siblings, 0 replies; 27+ messages in thread
From: Bob Myers @ 1995-07-11  4:00 UTC (permalink / raw)


another thread to possibly consider....

LINUX being ported to Sparc architecture...

-bob





^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
       [not found]   ` <3ttg7h$dkh@engnews2.eng.sun.com>
@ 1995-07-11  4:00     ` Jeff Dickson
  1995-07-12  4:00       ` Guy Harris
  1995-07-14  4:00       ` Interbase
  0 siblings, 2 replies; 27+ messages in thread
From: Jeff Dickson @ 1995-07-11  4:00 UTC (permalink / raw)


In article <3ttg7h$dkh@engnews2.eng.sun.com> Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer) writes:
>
>interbase@aol.com (Interbase) writes:
>
>>If indeed you do use the underlying system call - read() in this case -
>>then yes, the process would block. One approach to handling I/O so that 
>>other threads run (without kernel support) would be to use the select() 
>>or poll() system calls to determine when I/O can be done. The library 
>>can then suspend a thread which requests I/O, do the I/O when the 
>>select() or poll() call indicates that it is possible, and re- schedule 
>>the thread afterward. To prevent blocking in certain cases, each opened 
>>file descriptor can be marked as non- blocking. For the case where a 
>>non-blocking call returns a partially filled request under conditions in 
>>which the blocking equivalent would not, the library would need some 
>>additional logic to preserve the proper semantics. 
>
>Of course there are many advantages to kernel threads over non-kernel
>threads:
>	- if one thread blocks on a short-term read (normal file read,
>	  wait for disk I/O) another thread can get scheduled.
>	- if one thread gets a page fault, other threads can continue
>	- if you have multiple processors, your threads can use them
>
>Casper
>--

To overcome the negative effects of disk I/O why not use asynchronous reads
and writes? The aio_result_t structure whose address is passed to the read
and write functions and returned by aiowait() could be appended with infor-
mation that identified the particular thread from which the operation orig-
inated. Of course not all platforms support asynchronous I/O, but it'd be
silly to not take advantage of that if it were available. 

Jeff S. Dickson
jdickson@vtol.jpl.nasa.gov




^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
                   ` (3 preceding siblings ...)
  1995-07-11  4:00 ` Interbase
@ 1995-07-11  4:00 ` David Stone
  1995-07-13  4:00 ` Honbo Zhou
  1995-07-13  4:00 ` Marc Maathuis
  6 siblings, 0 replies; 27+ messages in thread
From: David Stone @ 1995-07-11  4:00 UTC (permalink / raw)


Andrew Gabriel (Andrew@cucumber.demon.co.uk) wrote:
: I am starting to look at unix threads, currently experimenting
: on Solaris x86 2.4, but eventually I will be looking at other
: unix systems too.

: I would appreciate any comments about what implementations of
: threads there are around. Besides Solaris, I took a quick look
: on an ICL DRS 6000 and that appeared to have the same functions
: as Solaris. Also I am aware of Posix threads, but I know of no
: implementations.

Unixware 2.X has a threads implementation that is related
to the native Solaris version.  At some point there should
be a Posix version available.

: Solaris threads are supported in the kernel, but I have heard
: that on some systems the threads support is user level only.
: Which other systems support kernel level verses user level
: threads?

There is a DCE package from Transarc that presents
a POSIX interface that works on non-threaded systems.
I've seen it on Sun 4.

: On a system which supports only user level threads, would a
: blocking read in one thread block the whole process? If not,
: how are other threads run (without kernel support)?

No, that would defeat the whole purpose of threading.
I haven't actually looked, but I imagine the Transarc pacakge
works by routing I/O system calls through a layer that
makes them aysnchronous, and uses SIGPOLL for completions.
With that facility it would be relatively easy to just
"pause" the I/O thread and resume it when the I/O is complete.

David Stone
stone@sheba.com



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
                   ` (2 preceding siblings ...)
  1995-07-10  4:00 ` John Polstra
@ 1995-07-11  4:00 ` Interbase
       [not found]   ` <3ttg7h$dkh@engnews2.eng.sun.com>
                     ` (2 more replies)
  1995-07-11  4:00 ` David Stone
                   ` (2 subsequent siblings)
  6 siblings, 3 replies; 27+ messages in thread
From: Interbase @ 1995-07-11  4:00 UTC (permalink / raw)


Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:

".. on some systems the treads support is user level only. Which other 
systems support kernel level verses user level threads?"

AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
that Dec's Alpha series running OSF has kernel level support. In 
addition, Windows NT and OS/2 also have kernel level thread support. 
This is not an exhaustive list. 

"On a system which supports only user level threads, would a blocking 
read in one thread block the whole process? If not, how are other 
threads run (without kernel support)?" 

If indeed you do use the underlying system call - read() in this case -
then yes, the process would block. One approach to handling I/O so that 
other threads run (without kernel support) would be to use the select() 
or poll() system calls to determine when I/O can be done. The library 
can then suspend a thread which requests I/O, do the I/O when the 
select() or poll() call indicates that it is possible, and re- schedule 
the thread afterward. To prevent blocking in certain cases, each opened 
file descriptor can be marked as non- blocking. For the case where a 
non-blocking call returns a partially filled request under conditions in 
which the blocking equivalent would not, the library would need some 
additional logic to preserve the proper semantics. 

COMMERCIAL:

I recently posted a description of my own multi- threading library in 
comp.os.linux.announce. If you wish, take a look at it. If you would 
like further product information, give me a jingle. 


=========================================================
Interbase (Bryan Batten)
419 Talbert Street
Playa del Rey, CA 90293
America Online:  Interbase@aol.com
Compuserve:      72704.1727@compuserve.com
Solutions in distributed and concurrent programming



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00       ` Darren R. Davis
@ 1995-07-12  4:00         ` Bryan Althaus
  1995-07-13  4:00           ` Darren R. Davis
  1995-07-12  4:00         ` Bil Lewis
  1 sibling, 1 reply; 27+ messages in thread
From: Bryan Althaus @ 1995-07-12  4:00 UTC (permalink / raw)


Darren R. Davis (darrend@bikini.nsd.Provo.Novell.COM) wrote:
: In article <DBLq4o.7vo@nntpa.cb.att.com>, corey@hotrod.alph.att.com () writes:
: |> In article <3tv73b$27q@usgj.novell.co.jp>, Thong Ly <tly@novell.co.jp> wrote:
: |> >Interbase (interbase@aol.com) wrote:
: |> >: Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
: |> >
: |> >: ".. on some systems the treads support is user level only. Which other 
: |> >: systems support kernel level verses user level threads?"
: |> >
: |> >: AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
: |> >: that Dec's Alpha series running OSF has kernel level support. In 
: |> >: addition, Windows NT and OS/2 also have kernel level thread support. 
: |> >: This is not an exhaustive list. 
: |> >
: |> >	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
: |> >	(light-weight processes) and user threads.
: |> 
: |> 	At the Solaris Threads conference (developers conference) the
: |> 	SunSoft guys were telling everybody that UW did not support
: |> 	kernel threads. What gives?
: |> 
: |> 	--Corey            |  corey@hustler.att.com		  */

: They lied...

: Darren R. Davis
: Senior Software Engineer
: UnixWare Developer Support


Darren it amazes me sometimes how you just like to fan the flames. Its
as if you have a quota sometimes to just post regardless as if you
have anything to add, which is sad seeing as represent Novell. 

I just emailed Corey and the email he sent back basically said that the
Solaris threads conference that he went to was not the recent one
but 4 months ago. He then basically said that they might have been
referring to 1.x, who knows.

4 months ago our company had our order in for UnixWare 2.0 and were
still waiting, so at the time UnixWare meant 1.x which had no thread
support.

I know the people at SunSoft who are up on threads and probably taught
the course ( they have already replied to this thread ) and they
are the most knowlegeable people on threads that you would want to meet.

 




^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00   ` Thong Ly
  1995-07-12  4:00     ` Jari Tavi
@ 1995-07-12  4:00     ` corey
  1995-07-12  4:00       ` Larry Rosenman
  1995-07-12  4:00       ` Darren R. Davis
  1 sibling, 2 replies; 27+ messages in thread
From: corey @ 1995-07-12  4:00 UTC (permalink / raw)


In article <3tv73b$27q@usgj.novell.co.jp>, Thong Ly <tly@novell.co.jp> wrote:
>Interbase (interbase@aol.com) wrote:
>: Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
>
>: ".. on some systems the treads support is user level only. Which other 
>: systems support kernel level verses user level threads?"
>
>: AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
>: that Dec's Alpha series running OSF has kernel level support. In 
>: addition, Windows NT and OS/2 also have kernel level thread support. 
>: This is not an exhaustive list. 
>
>	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
>	(light-weight processes) and user threads.

	At the Solaris Threads conference (developers conference) the
	SunSoft guys were telling everybody that UW did not support
	kernel threads. What gives?

	--Corey

>
>Regards,
>Thong
>--
>Thong Ly                        Unix Products Development, NOVELL Japan, Ltd.
>Email: tly@novell.co.jp         Toei Mishuku Bldg., 1-13-1 Mishuku
>       tly@summit.novell.com    Setagaya-ku, Tokyo 154, Japan
>Direct: +81-3-5431-8157         Tel: +81-3-5481-4813, Fax: +81-3-5481-4815


-- 
/* Corey Brown  (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65)       */
/* AT&T NSD	             |  corey@hustler.att.com		  */
/* Alpharetta, Ga 30202	     |  attmail!wcbrown			  */
/* (404)750-8071             |  New rays from an ancient sun (JS) */	



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-11  4:00 ` Interbase
       [not found]   ` <3ttg7h$dkh@engnews2.eng.sun.com>
  1995-07-11  4:00   ` Casper H.S. Dik - Network Security Engineer
@ 1995-07-12  4:00   ` Thong Ly
  1995-07-12  4:00     ` Jari Tavi
  1995-07-12  4:00     ` corey
  2 siblings, 2 replies; 27+ messages in thread
From: Thong Ly @ 1995-07-12  4:00 UTC (permalink / raw)


Interbase (interbase@aol.com) wrote:
: Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:

: ".. on some systems the treads support is user level only. Which other 
: systems support kernel level verses user level threads?"

: AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
: that Dec's Alpha series running OSF has kernel level support. In 
: addition, Windows NT and OS/2 also have kernel level thread support. 
: This is not an exhaustive list. 

	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
	(light-weight processes) and user threads.

Regards,
Thong
--
Thong Ly                        Unix Products Development, NOVELL Japan, Ltd.
Email: tly@novell.co.jp         Toei Mishuku Bldg., 1-13-1 Mishuku
       tly@summit.novell.com    Setagaya-ku, Tokyo 154, Japan
Direct: +81-3-5431-8157         Tel: +81-3-5481-4813, Fax: +81-3-5481-4815



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00     ` corey
@ 1995-07-12  4:00       ` Larry Rosenman
  1995-07-12  4:00       ` Darren R. Davis
  1 sibling, 0 replies; 27+ messages in thread
From: Larry Rosenman @ 1995-07-12  4:00 UTC (permalink / raw)


In article <DBLq4o.7vo@nntpa.cb.att.com>,  <corey@hotrod.alph.att.com> wrote:
>>	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
>>	(light-weight processes) and user threads.
>
>	At the Solaris Threads conference (developers conference) the
>	SunSoft guys were telling everybody that UW did not support
>	kernel threads. What gives?
Unixware 2.0 has LWP's, apparently 1.x didn't. So maybe the SunSoft guys
aren't totally up to date wrt UnixWare 2....






-- 
Larry Rosenman              work: larryr@altai.com  home:ler@lerami.lerctr.org
Sr. Product Support Analyst/Postmaster                          (817) 652-6365
Altai Software, 624 Six Flags Drive, Suite 150, Arlington, TX 76011
Disclaimer: Views expressed do *NOT* necessarily reflect those of the company.



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00   ` Thong Ly
@ 1995-07-12  4:00     ` Jari Tavi
  1995-07-13  4:00       ` Guy Harris
  1995-07-14  4:00       ` Daniel Wood
  1995-07-12  4:00     ` corey
  1 sibling, 2 replies; 27+ messages in thread
From: Jari Tavi @ 1995-07-12  4:00 UTC (permalink / raw)



In article <3tv73b$27q@usgj.novell.co.jp>, tly@summit.novell.com (Thong Ly) writes:
<snip>

|> 	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
|> 	(light-weight processes) and user threads.
|> 
|> Regards,
|> Thong

	If you really mean what you say, then your comment contains 
	conflicting statements:

		light weight processes != kernel threads

--
-------------------------------------------------------------------------------
Full-Name:      Jari Tavi			
Organization:   Digital Finland                 Dept:           MKTG/Prod. MGMT
Tel:            +358-0-434 5252	                Fax:            +358-0-452 4046
E-mail:         jpt@rixrax.enet.dec.com
Address:        Digital Equipment Corporation Oy
                Box 16
                FIN-02201 Espoo
                FINLAND
-------------------------------------------------------------------------------
* All opinions are my personal, and do not necessarily represent opinions of
* my employer! 



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00     ` corey
  1995-07-12  4:00       ` Larry Rosenman
@ 1995-07-12  4:00       ` Darren R. Davis
  1995-07-12  4:00         ` Bryan Althaus
  1995-07-12  4:00         ` Bil Lewis
  1 sibling, 2 replies; 27+ messages in thread
From: Darren R. Davis @ 1995-07-12  4:00 UTC (permalink / raw)


In article <DBLq4o.7vo@nntpa.cb.att.com>, corey@hotrod.alph.att.com () writes:
|> In article <3tv73b$27q@usgj.novell.co.jp>, Thong Ly <tly@novell.co.jp> wrote:
|> >Interbase (interbase@aol.com) wrote:
|> >: Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
|> >
|> >: ".. on some systems the treads support is user level only. Which other 
|> >: systems support kernel level verses user level threads?"
|> >
|> >: AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
|> >: that Dec's Alpha series running OSF has kernel level support. In 
|> >: addition, Windows NT and OS/2 also have kernel level thread support. 
|> >: This is not an exhaustive list. 
|> >
|> >	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
|> >	(light-weight processes) and user threads.
|> 
|> 	At the Solaris Threads conference (developers conference) the
|> 	SunSoft guys were telling everybody that UW did not support
|> 	kernel threads. What gives?
|> 
|> 	--Corey

They lied...

|> 
|> >
|> >Regards,
|> >Thong
|> >--
|> >Thong Ly                        Unix Products Development, NOVELL Japan, Ltd.
|> >Email: tly@novell.co.jp         Toei Mishuku Bldg., 1-13-1 Mishuku
|> >       tly@summit.novell.com    Setagaya-ku, Tokyo 154, Japan
|> >Direct: +81-3-5431-8157         Tel: +81-3-5481-4813, Fax: +81-3-5481-4815
|> 
|> 
|> -- 
|> /* Corey Brown  (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65)       */
|> /* AT&T NSD	             |  corey@hustler.att.com		  */
|> /* Alpharetta, Ga 30202	     |  attmail!wcbrown			  */
|> /* (404)750-8071             |  New rays from an ancient sun (JS) */	

-- 
Darren R. Davis
Senior Software Engineer
UnixWare Developer Support



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00       ` Darren R. Davis
  1995-07-12  4:00         ` Bryan Althaus
@ 1995-07-12  4:00         ` Bil Lewis
  1 sibling, 0 replies; 27+ messages in thread
From: Bil Lewis @ 1995-07-12  4:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

: |> 	At the Solaris Threads conference (developers conference) the
: |> 	SunSoft guys were telling everybody that UW did not support
: |> 	kernel threads. What gives?
: |> 
: |> 	--Corey

: They lied...

  Ill-informed.  Who was it?  I'll go kick 'em...

: -- 
: Darren R. Davis
: Senior Software Engineer
: UnixWare Developer Support

--
Det �r den som g�r vilse, som finner de nya v�garna

REPLY TO: Bil.Lewis@SUN.COM
Developer Technical Evangelism



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-11  4:00     ` Jeff Dickson
@ 1995-07-12  4:00       ` Guy Harris
  1995-07-14  4:00       ` Interbase
  1 sibling, 0 replies; 27+ messages in thread
From: Guy Harris @ 1995-07-12  4:00 UTC (permalink / raw)


Jeff Dickson <jdickson@vtol.jpl.nasa.gov> wrote:
>To overcome the negative effects of disk I/O why not use asynchronous reads
>and writes?

Well, at least in SunOS 5.x, one reason is "because SunOS 5.x *has*
kernel threads" - and, I think, asynchronous I/O is implemented atop
them!

SunOS 4.1[.x]'s asynchronous I/O is implemented atop a kernel
implementation of the 4.x LWP library; that kernel implementation is
*NOT*, however, exposed to userland, unfortunately.

I.e., are there any platforms, other than SunOS 4.1[.x], that

	1) have asynchronous I/O of that sort;

	2) do *NOT* have kernel threads?



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
                   ` (5 preceding siblings ...)
  1995-07-13  4:00 ` Honbo Zhou
@ 1995-07-13  4:00 ` Marc Maathuis
  6 siblings, 0 replies; 27+ messages in thread
From: Marc Maathuis @ 1995-07-13  4:00 UTC (permalink / raw)


In article <805320887snz@cucumber.demon.co.uk>, Andrew@cucumber.demon.co.uk (Andrew Gabriel) writes:
  ...
  | I am starting to look at unix threads, currently experimenting
  | on Solaris x86 2.4, but eventually I will be looking at other
  | unix systems too.
  | 
  | I would appreciate any comments about what implementations of
  | threads there are around. 
  ...
  | Which other systems support kernel level verses user level
  | threads?
  ...

CHORUS/Fusion supports multi-threaded UNIX processes (user and kernel
level threads, i.e. one thread doing e.g. a blocking read(2) on a tty
will not block other threads in the same process). The multi-thread
API is POSIX 1003.1c (former .4a) compatible. CHORUS/Fusion is binary
compatible with SCO Open Desktop 3.0. For more information on CHORUS/Fusion,
see URL ftp://ftp.chorus.fr/pub/datasheets/Fusion_r1.ascii).

-- 
Marc Maathuis                   Sales Support Europe & Asia Pacific
Tel: +33 1 30 64 82 57 (direct) Chorus Systems
Fax: +33 1 30 57 00 66          6, avenue Gustave Eiffel
E-mail: mm@chorus.fr            F-78182 St. Quentin en Yvelines Cedex



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
                   ` (4 preceding siblings ...)
  1995-07-11  4:00 ` David Stone
@ 1995-07-13  4:00 ` Honbo Zhou
  1995-07-13  4:00 ` Marc Maathuis
  6 siblings, 0 replies; 27+ messages in thread
From: Honbo Zhou @ 1995-07-13  4:00 UTC (permalink / raw)


In article <805320887snz@cucumber.demon.co.uk> Andrew@cucumber.demon.co.uk writes:
>I would appreciate any comments about what implementations of
>threads there are around. Besides Solaris, I took a quick look
>on an ICL DRS 6000 and that appeared to have the same functions
>as Solaris. Also I am aware of Posix threads, but I know of no
>implementations.

I don't know about the details of thread implementations on
different platforms, but used several different threads for 
the implementation of LPVM:

http://www.epm.ornl.gov/~zhou/ltpvm/ltpvm.html

The same package could have significant differences on performance
on different systems! 

Up to now, I can't explain why there are such big differences
on performance. I guess whether the threads are kernel level or
user level will make a difference, and the scheduling policies
amy also play an important role on performance... 

I would appreciate if experts out there could comments.

Honbo Zhou



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00     ` Jari Tavi
@ 1995-07-13  4:00       ` Guy Harris
  1995-07-14  4:00       ` Daniel Wood
  1 sibling, 0 replies; 27+ messages in thread
From: Guy Harris @ 1995-07-13  4:00 UTC (permalink / raw)


Jari Tavi <jpt@rixrax.fno.dec.com> wrote:
>	If you really mean what you say, then your comment contains 
>	conflicting statements:
>
>		light weight processes != kernel threads

They're only unequal if you choose not to use the phrase "lightweight
processes" to refer to kernel threads.

Sun, for example, uses the term "lightweight process", in SunOS 5.x, to
refer to threads of control known to the the kernel; user-mode threads
are implemented atop them, but there isn't necessarily a one-to-one
correspondence between user-mode threads and LWP's.

Unixware 2.x may do the same thing, and Novell may use the term
"lightweight process" in the same way that Sun does.



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00         ` Bryan Althaus
@ 1995-07-13  4:00           ` Darren R. Davis
  1995-07-18  4:00             ` Tim Wake
  0 siblings, 1 reply; 27+ messages in thread
From: Darren R. Davis @ 1995-07-13  4:00 UTC (permalink / raw)


In article <bryDBMBLI.8CE@netcom.com>, bry@netcom.com (Bryan Althaus) writes:
|> Darren R. Davis (darrend@bikini.nsd.Provo.Novell.COM) wrote:
|> : In article <DBLq4o.7vo@nntpa.cb.att.com>, corey@hotrod.alph.att.com () writes:
|> : |> In article <3tv73b$27q@usgj.novell.co.jp>, Thong Ly <tly@novell.co.jp> wrote:
|> : |> >Interbase (interbase@aol.com) wrote:
|> : |> >: Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
|> : |> >
|> : |> >: ".. on some systems the treads support is user level only. Which other 
|> : |> >: systems support kernel level verses user level threads?"
|> : |> >
|> : |> >: AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
|> : |> >: that Dec's Alpha series running OSF has kernel level support. In 
|> : |> >: addition, Windows NT and OS/2 also have kernel level thread support. 
|> : |> >: This is not an exhaustive list. 
|> : |> >
|> : |> >	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
|> : |> >	(light-weight processes) and user threads.
|> : |> 
|> : |> 	At the Solaris Threads conference (developers conference) the
|> : |> 	SunSoft guys were telling everybody that UW did not support
|> : |> 	kernel threads. What gives?
|> : |> 
|> : |> 	--Corey            |  corey@hustler.att.com		  */
|> 
|> : They lied...
|> 
|> : Darren R. Davis
|> : Senior Software Engineer
|> : UnixWare Developer Support
|> 
|> 
|> Darren it amazes me sometimes how you just like to fan the flames. Its
|> as if you have a quota sometimes to just post regardless as if you
|> have anything to add, which is sad seeing as represent Novell. 
|> 
|> I just emailed Corey and the email he sent back basically said that the
|> Solaris threads conference that he went to was not the recent one
|> but 4 months ago. He then basically said that they might have been
|> referring to 1.x, who knows.
|> 
|> 4 months ago our company had our order in for UnixWare 2.0 and were
|> still waiting, so at the time UnixWare meant 1.x which had no thread
|> support.
|> 
|> I know the people at SunSoft who are up on threads and probably taught
|> the course ( they have already replied to this thread ) and they
|> are the most knowlegeable people on threads that you would want to meet.
|> 
|>  
|> 

I apologize, I guess I have zero tolerance for ill informed
competitors making claims about our products that are not true.

-- 
Darren R. Davis
Senior Software Engineer
UnixWare Developer Support



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-14  4:00       ` Interbase
@ 1995-07-14  4:00         ` J M Thompson
  0 siblings, 0 replies; 27+ messages in thread
From: J M Thompson @ 1995-07-14  4:00 UTC (permalink / raw)


In article <3u54j7$if6@newsbf02.news.aol.com>,

     [ ... lines deleted ... ]

>- IMHO (But I did just love BDAM).

Well ... let's not forget how EXCePtional it is to program channel 
commands. :-)


-- 
Jim Thompson                       
email: masato@access.digex.net    
phone: 703-759-8252              
                                



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-11  4:00   ` Casper H.S. Dik - Network Security Engineer
@ 1995-07-14  4:00     ` Jeffrey M. Denham
  0 siblings, 0 replies; 27+ messages in thread
From: Jeffrey M. Denham @ 1995-07-14  4:00 UTC (permalink / raw)



On Digital UNIX (nee DEC OSF/1) version up to V4.0 (entering field test
soon), there is a 1-to-1 one correspondence of user threads to kernel
threads, based on the original Mach threading model. The threads package
is called DECthreads, and corresponds to draft 4 of pthread (POSIX P1003.1c,
nee .4a).

On version V4.0, we'll be moving to a mixed threading model, combining
kernel-based and library-based threads in a many-to-one model. This
release will be based on the final, approved pthreads standard of June 1995.
-- 

-----------------------------------------------------------------------------
Jeff Denham, Unix Software Group, Digital Equipment Corporation
email: denham@zk3.dec.com, voice: (603) 881-0057



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-12  4:00     ` Jari Tavi
  1995-07-13  4:00       ` Guy Harris
@ 1995-07-14  4:00       ` Daniel Wood
  1995-07-22  4:00         ` Mark J Hewitt
  1 sibling, 1 reply; 27+ messages in thread
From: Daniel Wood @ 1995-07-14  4:00 UTC (permalink / raw)


jpt@rixrax.fno.dec.com (Jari Tavi) wrote:
>
>In article, tly@summit.novell.com (Thong Ly) writes:
>
>|> 	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
>|> 	(light-weight processes) and user threads.
>|> 
>|> Regards,
>|> Thong
>	If you really mean what you say, then your comment contains 
>	conflicting statements:
>
>		light weight processes != kernel threads

I do not see tly's statement as conflicting.  LWP's are implemented as
kernel threads and the statement indicates that you have user threads
and kernel threads(Tied to LWP's over which the user threads run).

Yes, there can exist kernel thread's that are not tied to an LWP to service
interrupts and such.

What is generally confused is that:

	kernel threads and/or LWP's != User threads




^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-11  4:00     ` Jeff Dickson
  1995-07-12  4:00       ` Guy Harris
@ 1995-07-14  4:00       ` Interbase
  1995-07-14  4:00         ` J M Thompson
  1 sibling, 1 reply; 27+ messages in thread
From: Interbase @ 1995-07-14  4:00 UTC (permalink / raw)


jdickson@vtol.jpl.nasa.gov (Jeff Dickson) writes:


.. To overcome the negative effects of disk I/O why not use asynchronous
reads
.. and writes? The aio_result_t structure whose address is passed to the
read
.. and write functions and returned by aiowait() could be appended with
infor-
.. mation that identified the particular thread from which the operation
orig-
.. inated. Of course not all platforms support asynchronous I/O, but it'd
be
.. silly to not take advantage of that if it were available. 


My only knowledge of Async I/O on a unix type system comes from AIX. Other

experience comes from MVS and a propprietory OS - OS/32 (Concurrent nee
Interdata). 
In AIX, it seems to be made a pretty heavyweight deal; the process doing
it must 
be a kernel process, and must be resident. For async I/O it's entirely
legitimate 
to pin the data area, but it does seem there is an exposure to a
performance
 penalty for the overall system due to the reduction in pageable main
storeage 
- IMHO (But I did just love BDAM).



=========================================================
Interbase (Bryan Batten)
419 Talbert Street
Playa del Rey, CA 90293
America Online:  Interbase@aol.com
Compuserve:      72704.1727@compuserve.com
Solutions in distributed and concurrent programming



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-13  4:00           ` Darren R. Davis
@ 1995-07-18  4:00             ` Tim Wake
  0 siblings, 0 replies; 27+ messages in thread
From: Tim Wake @ 1995-07-18  4:00 UTC (permalink / raw)


In article <bryDBMBLI.8CE@netcom.com>, bry@netcom.com (Bryan Althaus) writes:
|> Darren R. Davis (darrend@bikini.nsd.Provo.Novell.COM) wrote:
|> : In article <DBLq4o.7vo@nntpa.cb.att.com>, corey@hotrod.alph.att.com () writes:
|> : |> In article <3tv73b$27q@usgj.novell.co.jp>, Thong Ly <tly@novell.co.jp> wrote:
|> : |> >Interbase (interbase@aol.com) wrote:
|> : |> >: Andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
|> : |> >
|> : |> >: ".. on some systems the treads support is user level only. Which other 
|> : |> >: systems support kernel level verses user level threads?"
|> : |> >
|> : |> >: AIX 4.1 has kernel level support of threads. I believe (but am not sure) 
|> : |> >: that Dec's Alpha series running OSF has kernel level support. In 
|> : |> >: addition, Windows NT and OS/2 also have kernel level thread support. 
|> : |> >: This is not an exhaustive list. 
|> : |> >
|> : |> >	UNIX SVR4.2 MP, UnixWare 2.0 implement both kernel threads
|> : |> >	(light-weight processes) and user threads.
|> : |> 
|> : |> 	At the Solaris Threads conference (developers conference) the
|> : |> 	SunSoft guys were telling everybody that UW did not support
|> : |> 	kernel threads. What gives?
|> : |> 
|> : |> 	--Corey            |  corey@hustler.att.com		  */
|> 
|> : They lied...
|> 
|> : Darren R. Davis
|> : Senior Software Engineer
|> : UnixWare Developer Support
|> 
|> 
|> Darren it amazes me sometimes how you just like to fan the flames. Its
|> as if you have a quota sometimes to just post regardless as if you
|> have anything to add, which is sad seeing as represent Novell. 
|> 
|> I just emailed Corey and the email he sent back basically said that the
|> Solaris threads conference that he went to was not the recent one
|> but 4 months ago. He then basically said that they might have been
|> referring to 1.x, who knows.
|> 
|> 4 months ago our company had our order in for UnixWare 2.0 and were
|> still waiting, so at the time UnixWare meant 1.x which had no thread
|> support.
|> 
|> I know the people at SunSoft who are up on threads and probably taught
|> the course ( they have already replied to this thread ) and they
|> are the most knowlegeable people on threads that you would want to meet.
|> 
|>  
|> 
I don't know.  I went to a Sun Tech Camp on threads programming on June 8
in Houston and the instuctor went on and on at the end of the class on how
UW 2.0 was not true multi-threaded and that the kernel was was not threaded.
Not to mention alot of over jabs that were not true.

==============================================================
Tim Wake                      713-366-7695
tlwake@amoco.com

Amoco Prod Co.                Houston, Tx
Field Automation Systems

I dont even try to speak for Amoco.
==============================================================



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: Threads on different unix systems
  1995-07-14  4:00       ` Daniel Wood
@ 1995-07-22  4:00         ` Mark J Hewitt
  0 siblings, 0 replies; 27+ messages in thread
From: Mark J Hewitt @ 1995-07-22  4:00 UTC (permalink / raw)


Daniel Wood <dwood> wrote:

>Yes, there can exist kernel thread's that are not tied to an LWP to service
>interrupts and such.

>What is generally confused is that:

>	kernel threads and/or LWP's != User threads

But you could see an implementation with only user threads as one where the
(logical) LWP pool is related one to one with user processes, and the user
level threading is provided on top of that.  Therefore, there is no
theoretical reason why an architecture supporting kernel threads should not
also support user threads on a per LWP basis.

Of course, I doubt that you would want to...

-- 
Mark J. Hewitt                        mjh@elsabio.demon.co.uk




^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~1995-07-22  4:00 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-09  4:00 Threads on different unix systems Andrew Gabriel
1995-07-10  4:00 ` Jari Tavi
1995-07-11  4:00   ` Bob Myers
1995-07-10  4:00 ` Bil Lewis
1995-07-10  4:00 ` John Polstra
1995-07-11  4:00 ` Interbase
     [not found]   ` <3ttg7h$dkh@engnews2.eng.sun.com>
1995-07-11  4:00     ` Jeff Dickson
1995-07-12  4:00       ` Guy Harris
1995-07-14  4:00       ` Interbase
1995-07-14  4:00         ` J M Thompson
1995-07-11  4:00   ` Casper H.S. Dik - Network Security Engineer
1995-07-14  4:00     ` Jeffrey M. Denham
1995-07-12  4:00   ` Thong Ly
1995-07-12  4:00     ` Jari Tavi
1995-07-13  4:00       ` Guy Harris
1995-07-14  4:00       ` Daniel Wood
1995-07-22  4:00         ` Mark J Hewitt
1995-07-12  4:00     ` corey
1995-07-12  4:00       ` Larry Rosenman
1995-07-12  4:00       ` Darren R. Davis
1995-07-12  4:00         ` Bryan Althaus
1995-07-13  4:00           ` Darren R. Davis
1995-07-18  4:00             ` Tim Wake
1995-07-12  4:00         ` Bil Lewis
1995-07-11  4:00 ` David Stone
1995-07-13  4:00 ` Honbo Zhou
1995-07-13  4:00 ` Marc Maathuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox