Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- namespace MembuatThread
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("****Current Thread Informations***");
- Thread T = Thread.CurrentThread;
- T.Name = "MeTu+ Thread";
- Console.WriteLine("Thread Name: {0}", T.Name);
- Console.WriteLine("Thread Status: {0}", T.IsAlive);
- Console.WriteLine("Priority: {0}", T.Priority);
- Console.WriteLine("Context ID: {0}", Thread.CurrentContext.ContextID);
- Console.WriteLine("Current application domain: {0}", Thread.GetDomain().FriendlyName);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement