How do you create threading in .NET? What is the namespace
for that?

Answer Posted / kinjal

for threading namespace in .NET is
using System.Treading

static void Main(string[] args)
{
Thread.currenttread.name="k";
Console.WriteLine("name is {0}" , Thread.currentthread.name)
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you write a class without specifying namespace?

807


One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

727


Explain about .NET services?

820


Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?

725


What is the difference between function and stored procedure?

789


How to customize the trace output?

748


What is difference between .net core and .net standard?

684


What is .net assembly?

786


What is the difference between vb.net and vc#.net?

780


What is Entity Relationship Model in .NET?

813


What's a windows process in .net?

732


How do you turn off cookies for one page in your site? Give an example.

706


Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?

801


How many types of generations are there in a garbage collector?

739


Difference between machine.config and web.config?

759