-
public class Server extends Thread { Client client int counter public Server(Cli...
public class Server extends Thread { Client client int counter public Server(Client _client) { this.client = _client this.counter = 0 } public void run() { while (counter < 10) { this.client.queue.addElement(new Integer(counter)) counter++ } throw new RuntimeException("counter >= 10") } public static void main(String[] args) { Client c = new Client() Server s = new Server(c) c.start() s.start() } } class Client extends Thread { Vector queue public Client() { this.queue = new Vector() } public void run() { while (true) { if (! (queue.size() == 0)) { processNextElement() } } } private void processNextElement() { Object next = queue.elementAt(0) queue.removeElementAt(0) System.out.println(next)-public class Server extends Thread { Client client int counter public Server(Client _client) { this.client = _client this.counter = 0 } public void run() { while (counter lt; 10) { this.client.queue.addElement(new Integer(counter)) counter++ } throw new RuntimeException("counter gt;= 10") } p
- 2022-02-21 05:44:37下载
- 积分:1
-
增强型静态标签Clabel
增强型静态标签Clabel-enhanced static labels Clabel
- 2022-03-02 00:17:48下载
- 积分:1
-
仓库管理系统源代码,可以对仓库物品入库,出库,审核,带报表功能,可以对操作员,管理员进行权限管理...
仓库管理系统源代码,可以对仓库物品入库,出库,审核,带报表功能,可以对操作员,管理员进行权限管理-Warehouse management system source code, can goods storage warehouse, a database, auditing, with statements of function, can operators, administrator rights management
- 2023-03-28 16:35:04下载
- 积分:1
-
displayed in evc jpg pictures procedures, which I modified the display, Now gif...
在evc下显示jpg图片的程序,本人修改了其中的显示库,如今gif图片也可以显示了-displayed in evc jpg pictures procedures, which I modified the display, Now gif images can also show that the
- 2023-01-28 00:00:04下载
- 积分:1
-
该代码示例提供了一个良好的移动和可移动的移动台架…
该代码例子提供了一个很好的可以移动和设置移动目标的运动标尺例子。-The code examples provide a good mobile and can target the mobile movement benchmark examples.
- 2022-01-26 05:32:40下载
- 积分:1
-
在对话框上加超链接的源代码,呵呵,终于找到了,现在发给大家啊~VC的...
在对话框上加超链接的源代码,呵呵,终于找到了,现在发给大家啊~VC的-add hyperlinks to the source code, what finally found, and now distributed to Members of the VC-ah
- 2022-03-07 18:39:30下载
- 积分:1
-
这个类库使你可以方便的显示不论是水平还是垂直的文本
这个类库使你可以方便的显示不论是水平还是垂直的文本-This library allows you to conveniently display the level of whether or vertical text
- 2023-08-10 06:35:04下载
- 积分:1
-
是一个能够在窗体上实现超级链接的程序,或者发送email;
是一个能够在窗体上实现超级链接的程序,或者发送email;-is one in the form of hyperlinks to achieve the procedure, or send email;
- 2022-02-01 00:02:19下载
- 积分:1
-
可灵活自定义字体和外框线的大小和颜色和颜色的groupbox控件,内有相关的函数接口方便调用,是一个继承类。内有源码和示例程序。...
可灵活自定义字体和外框线的大小和颜色和颜色的groupbox控件,内有相关的函数接口方便调用,是一个继承类。内有源码和示例程序。-The flexibility to customize the fonts, and outline the size and color lines and color of the groupbox control-related functions within the interface to facilitate the call, is a derived class. There are source and sample programs.
- 2022-02-04 09:32:57下载
- 积分:1
-
infobarctrl可以设置背景颜色CStatic膨胀
InfobarCtrl 可设置背景颜色的CStatic扩展-InfobarCtrl can set the background color CStatic expansion
- 2022-01-25 20:08:57下载
- 积分:1