多线程

上一篇 / 下一篇  2007-07-07 18:29:02 / 个人分类:Toyota

'首先包含线程的命名空间
Imports System
Imports System.Threading

'线程1
Public sub Method1()

end sub

'线程2
Public sub Method2()

end sub

'//////事件中//////
'定义线程1,线程2,必要时在适当位置定义成Public
dim ht1,ht2 as thread

'实例化ht1,ht2
th1 = New Thread(new threadstart(addressof method1))
th2 = New Thread(new threadstart(addressof method2))

'启动线程1
th1.start
'启动线程2
th2.start

'终止线程1
th1.about
'终止线程2
th2.about

 


TAG: 富士通 fujitsu 丰田 toyota 多线程 爱信 アイシン aisin

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-12-02  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 248
  • 日志数: 11
  • 建立时间: 2007-05-31
  • 更新时间: 2007-08-14

RSS订阅

Open Toolbar