Python Forum
launch processes from threads
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
launch processes from threads
#10
the application i will be starting in a process is heavy on CPU at times but is often waiting on network data (think web scraping). the application is not in Python but there may be a Python layer to get it started with the right command line options. the application will often be ffmpeg doing video format conversion.

the monitor is not CPU bound. it's just complicated (lots of different things to do depending on application results and events. each task will be in a different state so some form of multitasking makes monitoring easier (code it as working on one task).

this whole thing can get CPU-very-heavy if too many tasks needing format conversion need to run concurrently. i hope to eventually mange this by evaluating tasks and placing them is separate queues based on their resource needs so that i better diversify concurrent resource needs.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
launch processes from threads - by Skaperen - Feb-09-2024, 12:56 AM
RE: launch processes from threads - by Gribouillis - Feb-09-2024, 04:24 AM
RE: launch processes from threads - by Skaperen - Feb-10-2024, 10:58 PM
RE: launch processes from threads - by DeaD_EyE - Feb-14-2024, 04:00 PM
RE: launch processes from threads - by Skaperen - Feb-17-2024, 12:40 AM
RE: launch processes from threads - by wearsafe - Feb-20-2024, 01:40 AM
RE: launch processes from threads - by Skaperen - Feb-20-2024, 06:35 AM
RE: launch processes from threads - by Skaperen - Feb-20-2024, 06:44 AM
RE: launch processes from threads - by DeaD_EyE - Feb-20-2024, 07:07 AM
RE: launch processes from threads - by Skaperen - Feb-21-2024, 01:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  printing interleaved lines from many processes Skaperen 2 2,167 Feb-20-2024, 01:48 AM
Last Post: wearsafe
  order to call Popen for 2 piped processes Skaperen 0 1,207 Oct-22-2020, 11:31 PM
Last Post: Skaperen
  capture stdout from child processes Skaperen 0 3,364 Oct-30-2019, 12:11 AM
Last Post: Skaperen
  [split] launch .PY program sparkz_alot 4 6,042 Sep-28-2016, 05:16 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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