VMWare | onsite | Count the number of machines

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-02-07Added By Anonymous
Source: Link

Count the number of machines in a distributed system when all machines run the exact same main function concurrently by sending messages between machines to your left and right. All machines must be notified how many machines are in the system during the execution. Pre-provided methods: is_machine_right, is_machine_left, send_right, send_left.


Any suggestions are appreciated!

Comments