#166650 - 2006-08-31 09:51 AM
Re: Multithreading and pointers
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Forking a process or starting a new thread is an interesting idea. I have a server monitor script that RUNs a new KiXtart instance for every server polled - it would have been much easier to implement with Fork().
We'd probably need some some of inter-process communication for data exchange and latches for process control, but that's not such a bad thing. The really hard bit would be ensuring that all the libraries that KiXtart uses are thread safe which might mean dropping some of the older versions of Windows from support.
For a full implementation it would be nice to have signalling, trapping and error handling ("events"), but can probably get around most of that with IPC.
Quote:
For example there is currently no way to start a child form that is populated by a long running query to a DB and still use the parent form while the DB query is running.
If you know of a way then please let me know!
Use an asynchronous ODBC query. You initiate the query then poll the object to see when it has finished.
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 581 anonymous users online.
|
|
|