Thread getting stuck\hang

Iranna Mathapati iranna.gani28 at gmail.com
Thu Apr 27 10:18:24 EDT 2017


Hi Team,

I have python code that creates  thread.Sometimes it works, sometimes it
gets stuck once its finish its execution part. still not yet cannot find
any difference between when it works or when it gets stuck. Please help.


sniffer1 =
threading.Thread(target=validate_traffic_stats_dy,args=(FT_item_dy,RT_item_dy,forward_path_list_dy,return_path_list_dy,nat_type_list_dy,pkt_dy_1,))

sniffer2 =
threading.Thread(target=validate_traffic_stats_st,args=(FT_item_st,RT_item_st,forward_path_list_st,return_path_list_st,nat_type_list_st,pkt_st,))

sniffer1.start()

sniffer2.start()

sniffer3 = threading.Thread(target=delete_new_dynamic_nat_conf)

sniffer3.start()



sniffer1.join()

sniffer2.join()

sniffer3.join()



Thanks,

Iranna m


More information about the Python-list mailing list