How would you do this on your favourite language?using System;
using System.Threading;
class Program
{
public static void Main()
{
new Thread(() => { while(true) { Console.WriteLine("Hello World!"); Thread.Sleep(100); } } { IsBackground = True; }.Start();
Console.ReadKey();
}
}
>>57689823
Like thisRendszert használni;
Rendszerben található Fonalakat használni;
osztály Program
{
nyilvános állandó űr Fő()
{
új Fonál(() => {
amíg(igaz) {
Parancssor.Újsorírás("Helló Világ!"); Fonál.Aludj(100); }}
} {vanHáttere= Igaz;
}.Indítás();
Parancssor.Billentyűolvasás();
}
}
>>57689823użyj System;
użyj System.Wątki;
klasa Program
{
publiczna statyczna próżnia Główna()
{
nowy Wątek(() => { póki(prawda) { Konsola.WypiszLinię("Witaj Świecie!"); Wątek.Śpij(100); } } { WTle = Prawda; }.Start();
Konsola.PobierzKlawisz();
}
}
gebruikt Systeem;
gebruikt System.Threading;
klasse Programma
{
publiek statisch ruimte Hoofd()
{
nieuw Draad(() => { wanneer(waar) { Troost.SchrijfLijn("Hallo Wereld!"); Draad.Slaap(100); } } { IsAchtergrond = True; }.Begin();
Troost.LeesToets();
}
}
>>57689823
why are you doing threads in C#?
>>57689823
that fucked up formatting
kys
>>57694370
Fuck my lifeSysteem.Draad
>>57689823
Like this
using System;
using System.Threading;
class Program
{
public static void Main()
{
new Thread(() => { while(true) { Console.WriteLine("Hello World!"); Thread.Sleep(100); } } { IsBackground = True; }.Start();
Console.ReadKey();
}
}
använder System;
använder System.Trådning;
klass Program
{
allmän statisk tom Huvudsaklig()
{
ny Tråd(() => { medans(sant) { Manöverpanel.SkrivRad("Hej världen!");
Manöverpanel.LäsNyckel();
}
}