home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15734 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!think.com!sdd.hp.com!hp-col!fc.hp.com!koren
  3. From: koren@fc.hp.com (Steve Koren)
  4. Subject: Re: Low level context switch for tasks
  5. Sender: news@fc.hp.com (news daemon)
  6. Message-ID: <BxLz7I.CCI@fc.hp.com>
  7. Date: Thu, 12 Nov 1992 15:04:30 GMT
  8. References: <1992Nov12.120146.23099@rhrk.uni-kl.de>
  9. Organization: Hewlett-Packard Fort Collins Site
  10. X-Newsreader: Tin 1.1.3 PL5
  11. Lines: 20
  12.  
  13. Martin Apel (SAGA) (apel@physik.uni-kl.de) wrote:
  14.  
  15. > coprocessor context was saved for every task. Otherwise, if tasks
  16. > used inline fpu code, the registers wouldn't have been saved.
  17. > I think it's the same way in 2.0, as I'm using JM, which installs
  18. > such Switch/Launch vectors for cpu accounting.
  19.  
  20. I'm trying to find another way to do this in JM other than taking over
  21. tc_Switch and tc_Launch.  There looks to be some functions called
  22. "Switch()" and "Launch()" in exec.  Rumor has it that you can
  23. SetFunction() these just like anything else, and hence do CPU accounting
  24. without having to take over entries in the task structure.
  25.  
  26. Does anyone know anything about this, such as whether it works?  I also
  27. can't find library offsets for Switch() and Launch() like I can for the
  28. other functions in exec.library.  If I could setfunction these instead
  29. of what I'm doing now, I think I could make JM more inconspicuous to
  30. other programs.
  31.  
  32.    - steve
  33.