摘要 |
PROBLEM TO BE SOLVED: To provide a communication device for selecting at random communication device for executing a prescribed function from among communication devices in a network. SOLUTION: The communication device stores a first variable and a second variable, advertises the first variable to an adjacent device, updates the first variable of its own device on the basis of a first variable advertised by the adjacent device, and the first variable and the second variable of its own device, determines whether or not to execute the prescribed function when the prescribed function is not executed and the second variable is not a prescribed value, starts to execute the prescribed function in executing the prescribed function, decides an adjacent device of a moving destination to be a target of moving processing when not executing the prescribed function, transmits a moving request message to the decided adjacent device, and updates the second variable of its own device to the prescribed value in receiving a moving completion message from the adjacent device. COPYRIGHT: (C)2011,JPO&INPIT |