Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple windows / Multiple programs
#6
You need to give threads a function to start executing in, not an executable name (threads are lightweight processes). I don't code in FB, so I don't know what threading library it uses, but I would suggest using pthreads.

If you need to be able to swap the helper programs being executed then you can use a plugin architecture with dynamic libraries, see here.

You can have the threads you create also create their own threads. You do need to bear in mind though that all of the created threads will have access to the same heap and you need to be careful of race conditions and deadlocks.
esus saves.... Passes to Moses, shoots, he scores!
Reply


Messages In This Thread
Multiple windows / Multiple programs - by wallace - 01-27-2007, 10:27 PM
Multiple windows / Multiple programs - by wallace - 01-28-2007, 11:36 PM
Multiple windows / Multiple programs - by wallace - 01-29-2007, 10:42 PM
Multiple windows / Multiple programs - by LooseCaboose - 01-29-2007, 11:41 PM
Multiple windows / Multiple programs - by Anonymous - 02-15-2007, 11:24 PM
Multiple windows / Multiple programs - by D.slert - 08-27-2009, 03:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)