-
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
-
显示电子钟一样的数字和字母
显示电子钟一样的数字和字母-The static control which can display number and letter of electronic clock style
- 2022-08-22 23:45:47下载
- 积分:1
-
求余的逆的算法, 拥有许多其他功能,可以求指数求余,蒙格马利算法...
求余的逆的算法, 拥有许多其他功能,可以求指数求余,蒙格马利算法-for the inverse algorithm, has many other functions, I seek for index, the Montgomery algorithm, etc.
- 2022-01-28 06:12:41下载
- 积分:1
-
本文描述了一类(cdibstatic),实现了一个静态的控制使用…
This article describes a class (CDibStatic) that implements a static control used to display dibs. The control has a CDib member, which displays itself with the parameters passed by the CDibStatic class. The CDib class encapsulates the functionality provided in dibapi.h (DIBLOOK sample) and is described in an article in the images & palettes section. -This article describes a class (CDibStatic) that implements a static control used to display dibs. The control has a CDib member, which displays itself with the parameters passed by the CDibStatic class. The CDib class encapsulates the functionality provided in dibapi.h (DIBLOOK sample) and is described in an article in the images palettes section.
- 2022-04-18 12:09:01下载
- 积分:1
-
FontStatic is a Static can change fonts on a control.
FontStatic是一个可以更改控件上字体的静态控件。
- 2022-02-02 15:03:42下载
- 积分:1
-
15 wonderful characters three
15 奇妙的三维文字按钮,只是些基本的编成,初学者是不错的选择!-15 wonderful characters three-dimensional buttons, but some basic makeup and beginners is a good choice.
- 2022-03-05 19:05:02下载
- 积分:1
-
用HOOK DLL查看下的密码
用HOOK DLL查看下的密码-with HOOK View DLL under the password
- 2022-03-24 12:06:25下载
- 积分:1
-
related to the use of controls, for example, want to have like
VC里的相关控件的使用举例,希望有志同道合的朋友们能交流一下。-related to the use of controls, for example, want to have like-minded friends will be able to exchange about.
- 2022-05-22 06:41:51下载
- 积分:1
-
可用于显示信息的测量装置
一个可以用来显示信息的仪表控件。- May use for the displayed information the measuring appliance
to control.
- 2022-01-23 11:22:56下载
- 积分:1
-
Time display control, you can display a variety of styles. LIB contains DEMO
时间显示控件,可以多种显示风格.
LIB包含DEMO-Time display control, you can display a variety of styles. LIB contains DEMO
- 2022-01-26 01:31:09下载
- 积分:1