Skip to content

Commit

Permalink
creado main, clases __init__ y nombre de carpeta modificado
Browse files Browse the repository at this point in the history
  • Loading branch information
afpinzon10 committed May 17, 2018
1 parent cfaf30e commit 23dba78
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 5 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
61 changes: 56 additions & 5 deletions EntidadVirtual/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,56 @@
print("antes de importy")
import testmain.test as t
print("entre import y print")
t.printear()
print("despues de print")
from multiprocessing import Process
import API_REST.server as server
import API_REST.test_cerradura as cerradura
import time


def funt():
server.app.run()


def funt2():
cerradura.app.run()

def funt3():
import notificadores.listenerHeartbeat as lh


def funt4():
import horarios.horariosLogic as hl


def funt5():
import ServidorMensajeriaYCorreo.Notificador

p1 = Process(target=funt)
p2 = Process(target=funt2)
p3 = Process(target=funt3)
p4 = Process(target=funt4)
p5 = Process(target=funt5)
"""
def f1(b):
if b:
while True:
print("process 1 running")
def f2(b):
if b:
while True:
print("process 2 running")
a= True
p1 = Process(target=f1, args=(a,))
p2 = Process(target=f2, args=(a,))
"""
if __name__ == '__main__':
p1.start()
print("correra el proceso 2 -------------------------------------------------------------------------------")
p2.start()
print("correra el proceso 3 -------------------------------------------------------------------------------")
p3.start()
print("correra el proceso 4 -------------------------------------------------------------------------------")
p4.start()
print("correra el proceso 5 -------------------------------------------------------------------------------")
p5.start()
Empty file.
Binary file not shown.
Binary file not shown.

0 comments on commit 23dba78

Please sign in to comment.