home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18121 < prev    next >
Encoding:
Text File  |  1992-12-17  |  2.3 KB  |  60 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!msuinfo!golden.cps.msu.edu!engelsma
  3. From: engelsma@golden.cps.msu.edu (Jonathan Engelsma (Reid))
  4. Subject: Re: C++ Coroutine Class?
  5. Message-ID: <1992Dec17.145533.6700@msuinfo.cl.msu.edu>
  6. Sender: news@msuinfo.cl.msu.edu
  7. Organization: Michigan State University, CPS Department
  8. References:  <Bz8A08.63C@csn.org>
  9. Date: Thu, 17 Dec 92 14:55:33 GMT
  10. Lines: 48
  11.  
  12. In article <Bz8A08.63C@csn.org>, bhays@teal.csn.org (Boyd Hays) writes:
  13. |> Hello,
  14. |>   I'm trying to use the AT&T C++ task classes on a SUN using CC3.0.1.
  15. |>   It is unclear to me how to have a task yield the processor without
  16. |>   that task becoming IDLE. I'm running on a Sparc and SUN doesn't 
  17. |>   distribute the source so I can't figure it out.
  18. |> 
  19. |>   1) Does anyone know how to have a task relinquish the processor?
  20.  
  21. Yes, executing the member function task::delay() will cause the 
  22. executing task to relinquish the processor.  The state of that task
  23. is still RUNNING.  
  24.  
  25. |> 
  26. |>   2) Is a more complete example than that provided with the documentation
  27. |>      available anywhere?
  28.  
  29. In the USL documentation that was provided with my compiler, there
  30. is a section entitled "System Time and Timers".  The above information
  31. was discussed in that section.   This section of the manual was taken
  32. from a paper by Stroustrup and Shopiro.  Anybody have a more precise
  33. reference for us?
  34.  
  35. |> 
  36. |>   3) In Tony Hansen's book "The C++ Answer Book" it mentions that the
  37. |>      solution to problem 7.10 (the new and improved tasking system) does
  38. |>      not run on a Sparc. Is this true, or does anyone have a set of diffs
  39. |>      that will allow it to work?
  40.  
  41. Haven't read that book so I can't comment on this.    What is the new
  42. and improved tasking system you are referring to?  Is that different than
  43. the one provided with CC3.0?  
  44.  
  45. |> 
  46. |> Thanks in advance,
  47. |> Boyd Hays
  48. |> bhays@csn.org
  49. |> 
  50.  
  51. -------------------------------------------------------------------------
  52. Jonathan R. Engelsma                            Michigan State University
  53.                                                      Department of
  54. E-mail:   engelsma@cps.msu.edu                     Computer Science
  55.       uunet!frith!engelsma    
  56.       uunet!frith!jresys!engelsma (home)    
  57. -------------------------------------------------------------------------
  58.  
  59.  
  60.