INTRO(STHREAD)
Shore Programmer's Manual - 2 August 96
NAME
INTRO \- Introduction to the Shore Threads Package
SYNOPSIS
The Shore Thread Package (sthread) provides C++ style light-weight
processes. It provides the following facilities (further
described by documents referenced in the See Also section):
- Threads
-
- Mutexes
-
- Conditional variables
-
- Event semaphores
-
- Asynchronous disk I/O
-
- Asynchronous file I/O handlers
-
DESCRIPTION
The thread mechanism allows several threads of control to share the
same address space. Each thread is represented by an instance of
sthread_t
class. Once created, a thread is an independent entity
with its own stack.
In a C++ program, the sthread initialization code is built into the
library such it will execute before the
main()
function begins. The
initialization code is responsible for spawning a
main_thread,
such that, when the initialization function returns, it returns in the
context of the
main_thread.
This ensures that the program
executes in a threaded environment from the beginning.
ENVIRONMENT
Sthread currently runs on the following processors/platforms:
- DecStation 3100 and 5000 series (MIPS, Ultrix)
-
- Intel Paragon (i860, OSF/1)
-
- HP 700 series (HP-PA, HP-UX 8.0 and 9.0)
-
- Sparcstation (SunOS 4.3.1, Solaris)
-
- x86 (Linux, Solaris)
-
- Silicon Graphics (Irix)
-
ERRORS
See
errors(sthread)
VERSION
This manual page applies to Version 1.0 of theShore software.
SPONSORSHIP
The Shore project is sponsored by the Advanced Research Project Agency, ARPA order number 018 (formerly 8230), monitored by the U.S. Army Research Laboratory under contract DAAB07-92-C-Q508.
COPYRIGHT
Copyright (c) 1994, 1995, 1996 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.SEE ALSO
Thread Class:
sthread_t(sthread)
Mutex Class:
smutex_t(sthread)
Condition Variable Class:
scond_t(sthread)
Event Semaphore Class:
sevsem_t(sthread)
File Descriptor Handler Classes:
file_handlers(sthread)