Article View: comp.sys.transputer
Article #234T414 link speed
From: BARKER
Date: Thu, 24 Aug 1989 15:08
Date: Thu, 24 Aug 1989 15:08
45 lines
2433 bytes
2433 bytes
Hello all,
I have this problem that seems to be totally ignored in the Transputer
Databook (1st ed. 1989). Can a T414 (or any other transputer for that matter)
maintain simultaneous bidirectional communication along a link?
Specifically:
I have an application where a T414B is acting as a host for a network of
T800s. In my original version of the host's program, the T414 would send out a
data packet (typically 10 - 1000 bytes), and wait to receive the results (again
10 - 1000 bytes). One these had been received, the host would send out the next
data packet, and so on...
I then decided that the program would be much more efficient if I had two
processes running in parallel on the T414: one sending data and one receiving
results. As soon as the receiver process received the first byte of the
results, it would pass a message to the sender. The sender would then start
transmitting the next data packet at the same time as the receiver was
receiving the rest of the last set of results.
In occam, very roughly:
PAR
WHILE TRUE -- receiver
SEQ
from.network ? results[0]
receiver.to.sender ! signal
from.network ? [results FROM 1 FOR results.length-1]
WHILE TRUE -- sender
SEQ
receiver.to.sender ? signal
to.network ! [data FROM 0 FOR data.length]
However I found no improvement in program speed. Now, this could be because of
some other bottleneck in my program, or simply because the T414 cannot maintain
the communication in both directions at the same time. Does anybody know the
answer?
--------------------------------------------------------------------------------
Simon Barker Phone: (0784) 439900 (UK)
Department of Physics, (+44) 784 439900 (international)
Royal Holloway and Bedford New College,
Egham Hill, Egham, JANET: UHAP033@UK.AC.RHBNC.VAXA or
Surrey, TW20 0EX, England BARKER@UK.AC.RHBNC.PH.V1
Technical Details
Message-ID:
<2680192A_00146338.00929C123B719680$9_1@UK.AC.RHBNC.PH.V1>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!ucbvax!v1.ph.rhbnc.ac.uk!BARKERShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!ucbvax!v1.ph.rhbnc.ac.uk!BARKER From: BARKER@v1.ph.rhbnc.ac.uk Newsgroups: comp.sys.transputer Subject: T414 link speed Message-ID: <2680192A_00146338.00929C123B719680$9_1@UK.AC.RHBNC.PH.V1> Date: 24 Aug 89 15:08:01 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 45