home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!golden.cps.msu.edu!engelsma
- From: engelsma@golden.cps.msu.edu (Jonathan Engelsma (Reid))
- Subject: Re: C++ Coroutine Class?
- Message-ID: <1992Dec17.145533.6700@msuinfo.cl.msu.edu>
- Sender: news@msuinfo.cl.msu.edu
- Organization: Michigan State University, CPS Department
- References: <Bz8A08.63C@csn.org>
- Date: Thu, 17 Dec 92 14:55:33 GMT
- Lines: 48
-
- In article <Bz8A08.63C@csn.org>, bhays@teal.csn.org (Boyd Hays) writes:
- |> Hello,
- |> I'm trying to use the AT&T C++ task classes on a SUN using CC3.0.1.
- |> It is unclear to me how to have a task yield the processor without
- |> that task becoming IDLE. I'm running on a Sparc and SUN doesn't
- |> distribute the source so I can't figure it out.
- |>
- |> 1) Does anyone know how to have a task relinquish the processor?
-
- Yes, executing the member function task::delay() will cause the
- executing task to relinquish the processor. The state of that task
- is still RUNNING.
-
- |>
- |> 2) Is a more complete example than that provided with the documentation
- |> available anywhere?
-
- In the USL documentation that was provided with my compiler, there
- is a section entitled "System Time and Timers". The above information
- was discussed in that section. This section of the manual was taken
- from a paper by Stroustrup and Shopiro. Anybody have a more precise
- reference for us?
-
- |>
- |> 3) In Tony Hansen's book "The C++ Answer Book" it mentions that the
- |> solution to problem 7.10 (the new and improved tasking system) does
- |> not run on a Sparc. Is this true, or does anyone have a set of diffs
- |> that will allow it to work?
-
- Haven't read that book so I can't comment on this. What is the new
- and improved tasking system you are referring to? Is that different than
- the one provided with CC3.0?
-
- |>
- |> Thanks in advance,
- |> Boyd Hays
- |> bhays@csn.org
- |>
-
- -------------------------------------------------------------------------
- Jonathan R. Engelsma Michigan State University
- Department of
- E-mail: engelsma@cps.msu.edu Computer Science
- uunet!frith!engelsma
- uunet!frith!jresys!engelsma (home)
- -------------------------------------------------------------------------
-
-
-