Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COI see, seems my understanding of multithreading is a bit limited :) So the thread that calls a method decides which thread the resulting event is fired on? and if one object subscribes to an event on another and that event is triggered then that subscribed method also will run in the originating thread? In that case the best way should be to call all methods and properties on Manager through a asynchronous methodinvoker right?
      singulars
    2. COYour best bet is to read up on threading. I'd suggest grabbing a copy of CLR Via C# by Jeff Richter. You will not be disappointed. A "Thread" is an execution context--it is where code is executed by a CPU. Execution goes from line to line. Execution doesn't magically jump from thread to thread; without a thread there is no execution. Execution of code doesn't exist outside or independently of a thread. If a thread's execution hits an event it executes the thread subscriber's handlers one by one.
      singulars
    3. COWhen a thread starts executing a method in your manager instance, you want that thread to pass a reference to another method to another thread (e.g., ThreadPool.EnqueueUserWorkItem), which doesn't block the current thread, allowing it to return from the method call. The TP will eventually get CPU time and start executing your work item on a different thread. Man, this is hard to describe. Unless you understand how threading and code execution works you should learn up about it before trying to use multithreading.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload