Multithreading in .NET CF

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello. I'm writing an implementation for something like the BackgroundWorker class for the .NET CF that works with an input queue.

I'm not very fluent in multithreading, but I'm doing tests and it appears to work.

The problem comes when I want to stop the multithread operation. It's for this that I need an expert to take me a hand with this. I will pay you if it is necessary, but I need a qualified person here.

I don't know people with the information I need, because either don't use .NET or because they have not learnt any multithreading basics. I need your help!



MORE INFO:
I've written a class in C# that processes a queue of items in a separate thread. When a single item is processed, it raises an event (ItemProcessed) with the result of the processing as an argument.

I use this event that is intercepted in the main thread to know when an item is processed and the result of the operation.

The class also uses an event to notify the end of the processing.

With all of this been said, I hope that one of you will be ready to help me.




SPECIFICATIONS:
- I want a class that is able to process an input queue to generate an otput queue doing all the required operations in a separate thread.
- the processing is needed to be cancellable asynchronously.
- when each item in the queue is processed, it has to raise an event to notify the processing of the item and the result of it to the main thread (using a Control.Invoke)
- the main thread will control the execution, using this class, being able to start and stop the processing.


WHY I WANT THIS?
It's because I'm doing a custom control that loads images in background when a path is specified. When the control is loading a path and you specify another path, the control should be able to cancel the background processing and restart it with the new path.


Please, help me. I'm also available through MSN Messenger at jmn<-at->superjmn.com

Answer this message if you have the knowledge to abord this problem.
Thank you a lot.
.



Relevant Pages

  • Re: Multithreading in .NET CF
    ... BackgroundWorker class for the .NET CF that works with an input queue. ... I don't know people with the information I need, because either don't use .NET or because they have not learnt any multithreading basics. ... SPECIFICATIONS: ... It's because I'm doing a custom control that loads images in background when a path is specified. ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Multithreading in .NET CF
    ... BackgroundWorker class for the .NET CF that works with an input queue. ... use .NET or because they have not learnt any multithreading basics. ... It's because I'm doing a custom control that loads images in background ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Multithreading and performance
    ... I realize now that eg using the Queue class would be more ... So multithreading the calculations won't give a big difference on a sigle CPU-single core system I ...
    (microsoft.public.dotnet.languages.csharp)
  • Implementing FcFs queue with J2SE 5.0
    ... J2SE 5.0 has a lot's of new classes considering multithreading. ... What is the best class to implement queue in FirstComesFirstServed model? ... Any sample code arapund? ...
    (comp.lang.java.programmer)
  • Re: Call Center application in Visual Basic
    ... Just to clear things out for me because I am new to the field of TAPI. ... Can any 3rd party model TSP for the specific PBX work with? ... > Please note that you need additional hardware (optiset E data or control ... >> of statistics on a queue, such the number of calls currently queued. ...
    (microsoft.public.win32.programmer.tapi)