Created
January 14, 2015 19:38
-
-
Save sujayy1983/4861a2935d3e500befa6 to your computer and use it in GitHub Desktop.
Entrypoint file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
@Author Sujayyendhiren Ramarao | |
@Description Entry point for the multiprocessing example | |
""" | |
from multiprocessing import Process, Lock, Value | |
import discoverLanIps | |
if __name__ == '__main__': | |
lock = Lock() | |
num = Value('d', 0.0) | |
proc1 = Process(target=discoverLanIps.proc_handler, args=(lock, 'discover', num,)) | |
proc1.start() | |
proc2 = Process(target=discoverLanIps.proc_handler, args=(lock, 'cleanup',num,)) | |
proc2.start() | |
proc3 = Process(target=discoverLanIps.proc_handler, args=(lock, 'logging',num,)) | |
proc3.start() | |
proc1.join() | |
proc2.join() | |
proc3.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment