Answer: </P><P align=justify>Some sample code follows: using System;</P><P align=justify>using System.Threading;</P><P align=justify></P><P align=justify>class ThreadTest </P><P align=justify>{</P><P align=justify>public void runme() </P><P align=justify>{</P><P align=justify>Console.WriteLine("Runme Called");</P><P align=justify>} </P><P align=justify></P><P align=justify>public static void Main(String[] args) </P><P align=justify>{</P><P align=justify>ThreadTest b = new ThreadTest();</P><P align=justify>Thread t = new Thread(new ThreadStart(b.runme));</P><P align=justify>t.Start();</P><P align=justify>}</P><P align=justify>}
Tags:Interview Questions, Microsoft, C#,
Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.
Sponsor Advertisement
Human Resource Management Software
Powerful, configurable software for human resources management that is easy to manage and remarkably cost-effective, whatever the size of your company. Now thereâs a smarter, more efficient way to handle all of your people-related activities. Easy-to-use system manages the full hire-to-retire lifecycle...
No comments:
Post a Comment