1.

Which method is used to abort thread prior to it’s normal execution?(a) sleep()(b) terminate()(c) suspend()(d) Abort()The question was posed to me by my school teacher while I was bunking the class.This interesting question is from Multithreaded Programming in section Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

Answer» RIGHT CHOICE is (d) Abort()

For explanation: To TERMINATE a THREAD prior to its NORMAL conclusion, use Thread.Abort( ). Its simplest form is shown here:


Discussion

No Comment Found

Related InterviewSolutions