home > 比較編 > Perl, PHP, Python, Ruby > execution control >

ForNext

Only Do What Only You Can Do

169. start thread

VBScript

JScript

Perl

use threads;

$func = sub { sleep 10 };
$thr = threads->new($func);


PHP

none





Python

class sleep10(threading.Thread):
  def run(self):
    time.sleep(10)

thr = sleep10()
thr.start()

Ruby

thr = Thread.new { sleep 10 }





PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system