26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the .<strong>NET</strong> runtime determines that it is in a safe place to suspend it. Sleep will immediately<br />

place a thread in a wait state.<br />

Note :- In threading interviews most people get confused with Sleep and Suspend.They look<br />

very similar.<br />

(A)What the way to stop a long running thread ?<br />

Thread.Abort() stops the thread execution at that moment itself.<br />

(A) How do i debug thread ?<br />

Figure :- 3.1 Debug thread window<br />

This window is only seen when the program is running in debug mode.In windows one of<br />

the window is “Threads”.<br />

(A)What's Thread.Join() in threading ?<br />

55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!