home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / vms / 17906 < prev    next >
Encoding:
Text File  |  1992-11-13  |  2.5 KB  |  53 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!mcsun!sunic!kth.se!admin.kth.se!nobeltech!kega
  3. From: kega@nobeltech.se (Kent Gabrin)
  4. Subject: ENQUEUE/DEQUEUE DCL-command source code in vmsnet.sources
  5. Message-ID: <1992Nov13.090154.20177@nobeltech.se>
  6. Sender: kega@nobeltech.se
  7. Organization: NobelTech AB
  8. Date: Fri, 13 Nov 1992 09:01:54 GMT
  9. Lines: 42
  10.  
  11.    ENQUEUE/DEQUEUE is two DCL-commands to synchronize DCL command
  12.    procedures throughout a whole VAXCluster. Beside the ordinary
  13.    semaphore technique, it offers you features like: Sending small
  14.    messages between processes, Enables barrier coding, Having sleeping
  15.    processes to be wake up when needed, Reserved prefix of resource
  16.    name to be used of processes with privilege OPER and other things.
  17.  
  18. In news group vmsnet.sources I have contribute with source code of the
  19. ENQUEUE/DEQUEUE routines. The package consists of nine (9) separate
  20. articles to be extracted and assembled. If that sounds interesting you
  21. can skip the rest of this article and start reading article number one
  22. (1/9) in vmsnet.sources where you find instructions how to go on.
  23.  
  24. If you just want to have a brief information you can continue to read
  25. the rest of this current article.
  26.  
  27.        Brief summary of ENQUEUE/DEQUEUE.
  28.  
  29. ENQUEUE/DEQUEUE is coded in MACRO32 and uses CDU as the interface to
  30. the user. The main system services that is used is $ENQ and $DEQ with
  31. lock mode equals EX (default) or CR. Help files are also provided
  32. together with complete instruction how to build and install the
  33. utility. By using the lock value block it is possible to send small
  34. messages (15 characters) from one process to another.
  35.  
  36. By using qualifier /SYNCHRONIZE the process will sleep, holding the
  37. lock, until another process wants to aquire the same lock that will
  38. trig a blocking AST of the processes holding the lock.
  39.  
  40. With qualifier /CR more than one process can hold the same lock at the
  41. same time and only processes that has omitted the /CR will have to
  42. wait. This technique is usefull when you want to be informed when
  43. 'all' processes (that are using /CR) has finished.
  44.  
  45. To prevent ordinary unprivileges users to obtain locks, vital to
  46. routines used by system manager, the prefix "SYS_" should be used
  47. together with the lock name (E.g. ENQUEUE SYS_lock_name). Only
  48. processes with privilege OPER is enable to use that kind of lock. <>
  49. -- 
  50. Kent Gabrin   NobelTech Systems    ! My thinking is not as great as
  51. S-175 88 Jaerfaella      Sweden    ! Oliver Berendinus Bumble /Will Try
  52. KEGA@nobeltech.se ! System Manager (Since 1982) VAXCluster (Since 1985)
  53.