Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need to design a thread and it should run like an infinite loop
Posted

1 solution

C#
Thread t = new Thread( () =>
{
while(true)
{
//your infinite loop 
}
});

t.Start();


This was 30 sec. Sketch for yours issue.
Good luck. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900