Quantcast
Channel: Dúvida com thread
Viewing all articles
Browse latest Browse all 11

Dúvida com thread

$
0
0

Cara,

Tente usar o System.Threading.Timer

Timer thrdTimer = new Timer(execute, 10, 0, 1000);

 void execute(object args)
        {
            // cast our parameter 
            int j = (int)args;

            Console.WriteLine("passo aqui a cada " + j + "segundos");
        }


Viewing all articles
Browse latest Browse all 11


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>