Note that there are some explanatory texts on larger screens.

plurals
  1. PORegarding various way of calling a method
    primarykey
    data
    text
    <p>very rare i worked with thread, background worker etc but never try to know when which one we should use and how each technique works internally. so here i am asking few question regarding thread,asynchronously calling method, background worker or TPL. i apologized here i have asked few question. my request is please read it and answer in details.</p> <ol> <li><p>when we run our apps then apps start with a thread which is called main thread. GUI related controls are created on another thread how far i heard....is it true ? is there any thread created for GUI ?</p></li> <li><p>when we call few method then all method calls happen sequentially means one method calls stand &amp; end then next method will star and everything happens in main thread. that is why main thread gets blocked. if we do not want to block main thread then we always like to run methods on another thread means asynchronously. is it true that asynchronously invoking any method means executing method on separate thread? if not does it mean asynchronously invoking any method which execute in same thread without blocking main thread? if yes then how it is possible.please explain in details.</p></li> <li><p>what is actually happen when we call any method asynchronously which does not block main thread? i need to know what is going on behind the curtain.</p></li> <li><p>what is the difference between calling method through thread.start and calling method asynchronously ?</p></li> <li><p>background worker execute method asynchronously in same main thread or in separate thread?</p></li> <li><p>when we invoke a method with thread.start then how can i specify callback that when my method finish then a callback will occur and let me know that method finish. i try to find such example with thread.start but found none. so help me to do it with sample code.</p></li> <li><p>what is the main objective of task parallel library. TPL does execute any method in main thread or in separate thread?</p></li> </ol> <p>we can use thread.start or background worker or calling any method asynchronously to solve our purpose then what extra things is giving TPL for which people use it?</p>
    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.
 

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