Path: utzoo!attcan!uunet!lll-winken!ames!ncar!unmvax!indri!polyslo!csun!csuchico!tempest From: tempest@csuchico.uucp (Kenneth Lui) Newsgroups: comp.sys.transputer Subject: Parallel output on TDS2 for the PC Keywords: Occam Message-ID: <1989Apr27.120625.5348@csuchico.uucp> Date: 27 Apr 89 19:06:24 GMT Organization: California State University, Chico Lines: 31 I'm just getting the feel of Occam 2 on TDS2. I"ve written some simple SEQtype programs and some ALTtype programs. I'm having some problems with PAR structures. Specifically, I want to write a section of code that would allow two or more parallel processes to output to the screen concurrently. I wanted to see if the output of one process within of a PAR structure would be intermixed with another process. I used the following code fragment: ... PAR SEQ write.full.string(screen,"String from 'a'") newline(screen) SEQ write.full.string(screen,"String from 'b'") newline(screen) ... Needless to say, it doesn't work. All I got was a big blank from the VDT, except one carriagereturn or linefeed. I looked through the example programs in the c:\tdsxampl subdirectory and it uses other predefined functions in c:\tdsiolib\interf.tsr. Hunting through the documentation (which I have limited access to), I read the section that talked about interf.tsr; but it's all greek to me. I kludged around with the functions mentioned, but all my experiments went down the drain... Can somebody offer some hints as to how I might accomplish the above using either userio.tsr, or both userio.tsr and interf.tsr? Thanks very much, Ken tempest@csuchico.EDU