0

I'm developing an event / message based application. Each message is sent in it's own python thread to each receiver. Some pseudo code for illustration:

from threading import Thread

while True:
    msg = get_next_msg()
    for receiver in msg.receivers:
        t = Thread(target=send_msg, args=(msg.data,receiver))
        t.start()
  • Is there a maximum number of threads that can can be run in parallel?
  • Is there a maximum number of thread that can be created?

0 Answers0