⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 out3.txt

📁 Programs for Distributed Systems. BE sem 2 for Computer engineering
💻 TXT
字号:
                          **** MENU ****
                         1. Bully's Algorithm
                         2. Ring Algorithm
                         3. Exit
                 Enter your choice: 1
 Enter how many process: 3                                                                                                    
 Enter the priority of process 1 : 2                                                                                           
 Is process with id 1 is active? (0/1): 1                                                                                   
 Enter the priority of process 2 : 1                                                                                          
 Is process with id 2 is active? (0/1): 0                                                                                   
 Enter the priority of process 3 : 1                                                                                           
 Is process with id 3 is active? (0/1): 1  
                                                                                  
 Enter the process id that invokes election algorithm: 3 
 Process 3 has invoked election lgorithm
 Election message is sent to processes  3                                        
 Process with id 1 is the co-ordinator                                          
 Do you want to continue? (y/n): y  
                                                                                        
 Enter the process with id 1 is active or not (0/1): 1                                                                 
 Enter the process with id 2 is active or not (0/1): 1                                                               
 Enter the process with id 3 is active or not (0/1): 1    
                                                             
 Enter the process id that invokes election algorithm: 2                                                            
 Election message is sent to processes  1, 2, 3                                 
 Process with id 3 is the co-ordinator                                           
 Do you want to continue? (y/n):   n



                                 **** MENU ****
                         1. Bully's Algorithm
                         2. Ring Algorithm
                         3. Exit
                 Enter your choice: 2
 Enter how many process: 3
 Enter the priority of process 1 : 2
 Is process with id 1 is active? (0/1): 1                         
 Enter the priority of process 2 : 1
 Is process with id 2 is active? (0/1): 1
 Enter the priority of process 3 : 1
 Is process with id 3 is active? (0/1): 1
 Process 1 has invoked algorithm
 Process 1 is a Co-ordinator
 Do you want to continue? (y/n):n

		        **** MENU ****
                         1. Bully's Algorithm
                         2. Ring Algorithm
                         3. Exit
                       Enter your choice: 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            




























                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 







































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -