• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

方法用String构造一个命名线程,currentThread获取当前线程,setName设置线程名称,getName获取线程名称。

Sleep(毫秒)线程休眠(挂起执行),isInterrupted判断是否中断,中断线程,join线程强制执行。

Yield thread comity(礼让一次),setPriority设置线程优先级,getPriority获取线程优先级。线程的优先级从低到高为1~10,默认为5。

执行一个Java程序产生一个JVM进程,其中main方法为主线程,主线程中可以创建几个子线程。主线程负责整个过程,子线程负责耗时的操作。

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now