CompuServe Messages

message passing

#: 21623 S7/ProgrammingForum unknown
    02-Jun-86 23:15:53
Sb: #21414-message passing
Fm: Charlie Heath 74216,2117
To: Bill Hamaker 70170,137

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Message ports are set up by conventions between the tasks using the ports. Only one task can "wait" for a message port, but multiple tasks can read / write to a port. If two tasks make a "simultaneous" GetMsg request, only one will get a message ( assuming there was one message in the port ). Thus it is safe to use a message as a token which only one task can own at a time. You can set up many different ports, which can be made publicly accessible ; any publicly accessible port can be found with the "FindPort" exec function.