My distributed operating system lab requires me to implement the election algorithm (bully and ring) in c.
My current idea is to run several instances of an ouput file on different terminal, each symbolizing a different process. Now i'm facing the following problem and if you guys could just point me in the right direction, that would be great!
To simulate the election process, i would require all the processes(instances of the program code im running in different terminals) to be aware of all the other instances. How can i achieve this?