home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / isis / 211 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.8 KB  |  48 lines

  1. Organization: Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!<UNAUTHENTICATED>+
  3. Newsgroups: comp.sys.isis
  4. Message-ID: <seS3w2_00hMg97SEU5@cs.cmu.edu>
  5. Date: Thu, 30 Jul 1992 15:12:02 -0400 
  6. From: Sean.Levy@cs.cmu.edu
  7. Subject: task arguments
  8. Lines: 38
  9.  
  10. The man page for isis_entry(3) in ISIS 2.2/3.0.5 implies that you can
  11. associate an argument with a task (e.g. a closure). However, it does not
  12. say any more about it other than the rather cryptic usage info:
  13.  
  14. ...
  15. SYNOPSIS
  16.  
  17.     int isis_task(task,name)
  18.     int isis_entry(entry,handler/MSG_ENQUEUE,name)
  19.         void (*task)(arg)
  20.         void *arg;
  21. ....
  22.  
  23. The code does not look like it does anything of the sort, e.g. tasks
  24. don't get arguments. Is this something that used to be in the code and
  25. was deleted, something that is coming, or just a typo? I'm trying to
  26. write a generic Tcl interface to ISIS, and closures for tasks are really
  27. needful; I can fake it with a static linked list, but I dislike such
  28. solutions on principle (plus they always end up biting you on the butt
  29. later on if you move to a real multiprocessor).
  30.  
  31. In general, I would like to see any sort of indirect function calls
  32. anywhere in the system always be accompanied by closures, however and
  33. wherever they are, ala Tk, Xt, and other toolkits for even-driven
  34. environments. It makes life much easier, and you burn at most the size
  35. of a pointer per indirect function, which isn't too bad when you
  36. consider what you gain.
  37.  
  38. Just my $0.02. Of course, if I'm wrong and there is a way to do this,
  39. please let me know. I *still* think ISIS is the best thing since sliced
  40. bread for building distributed systems (there, now can I get my coffee
  41. mug?? :-)
  42.  
  43. Cheers,
  44.         -- Sean
  45. --
  46. Sean Levy, n-dim Group, EDRC, CMU, 5000 Forbes Ave, PGH, PA 15213
  47. Email: snl+@cmu.edu, Phone: +1 412 268 5221, Fax: +1 412 268 5229
  48.