Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Process halting
#1
Hey Everyone,

I am writing a program that checks various sensors in the background, and controls hardware accordingly.

I wrote the program to using Processes in Multiprocessing, so that each sensor can check simultaneously. I have run into a problem. One of the processes is told to sleep for 60 seconds and try again if it cannot connect to a sensor, but when that happens all the processes seem to sit and wait during this time.

This isn't a issue of the program stalling, or a break due to low resources... it just seems to want to wait.

The only thing I can think might be the problem is that I am using Multiprocessing.Queue.get() and Multiprocessing.Queue.put() so I can receive any return data from the called functions.

Do those methods invoke a process lock?

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Halting if command if gpio triggered event triggered knoxvilles_joker 7 3,158 Jun-21-2021, 01:27 AM
Last Post: knoxvilles_joker
  How do you take terminal inputs w/o halting running code? Bhoot 3 2,534 Apr-17-2020, 08:31 AM
Last Post: deanhystad
  How to sharing object between multiple process from main process using Pipe Subrata 1 3,617 Sep-03-2019, 09:49 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020