mutually exclusive memory
Muncher
Posts: 38
if i wanted to write a program that would have one cog act as a keyboard entry buffer, and i wanted to relay the info from the keyboard to two other cogs, how would i go abotu doing it? (my uestion is on the relaying part)
Thanks, Muncher
Thanks, Muncher
Comments
Many sharing needs can be worked out by simple protocols like this. There· are eight semaphore bits available on the chip for sharing more complicated structures or resources which won't lend themselves to simpler solutions. Personally, I have never had to resort to using these.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Chip, judging from the instruction set documentation, aren't those bits better referred to as locks than semaphores? There's no associated count, and a COG can't await a particular value of the semaphore -- only the availability of the lock bit itself.
One could certainly implement traditional Dijkstra-style semaphores using the locks, but I think it's a bit of a misnomer.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
The Propeller block diagram also uses the word semaphore, so I gather both terms are in use here.