python
Edit
Run
Full Screen
Copy code
1# Start the network monitoring thread
2if args.network_monitoring:
3    network_monitoring_thread = threading.Thread(target=monitor_network)
4    network_monitoring_thread.start()
5
6# Start the user notification thread
7user_notification_thread = threading.Thread(target=notify_user, args=("Miner started!",))
8user_notification_thread.start()
9
10# Keep the main thread alive until the user terminates the script
11while True:
12    time.sleep(1)