Threads vs. processes, what to consider in choosing ?

B

Barak, Ron

Hi,

May I have your recommendations in choosing threads or processes for the following ?

I have a wxPython application that builds an internal database from a list of files and then displays various aspects of that data,
in response to user's requests.

I want to add a module that finds events in a set of log files (LogManager)..
These log files are potentially huge, and the initial processing is lengthy (several minutes).
Thus, when the user will choose LogManager, it would be unacceptable to block the other parts of the program, and so - the initial LogManager processing
would need to be done separately from the normal run of the program.
Once the initial processing is done, the main program would be notified and could display the results of LogManager processing.

I was thinking of either using threads, or using separate processes, for the main programs and LogManager.

What would you suggest I should consider in choosing between the two options ?
Are there other options besides threads and multi-processing ?

Thanks,
Ron.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top