multi-threading in console app


  • Hi,

    I want to make a console app that can use a dynamic amount of threads. It needs to udpate alot of DB entries, so instead of doing one at a time, i will use multiple threads. However, using threading.thread is alot more work than using BackgroundWorker, so i've decided to try to make it with backgroundworker.

    So my question is, if i keep my program running, by adding a while loop in the main (that ends when the tasks-queue is 0), will the backgroundworker events, still be handled, or will my application be caught up, in my loop?


    Nicolai Søndergaard LM Wind Power A/S
    Wednesday, May 12, 2010 12:04 PM


All replies