-
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
-
卡尔曼滤波器(kalman filter)设计,MATLAB语言实现。包括了详细的算法文档,通过室温控制说明具体设计过程。是学习kalman的一个好例程...
卡尔曼滤波器(kalman filter)设计,MATLAB语言实现。包括了详细的算法文档,通过室温控制说明具体设计过程。是学习kalman的一个好例程-Kalman filter (Kalman filter) design, MATLAB language. Include a detailed algorithm documents, room temperature control through specify the design process. Tracking the study is a good routines
- 2023-04-17 06:05:04下载
- 积分:1
-
CStatic文本的外观
首先在单击1行中调用CTestWindow::Create函数。它是CFrameWnd对象的Create函数,因为CTestWin...
CStatic文本的外观
首先在单击1行中调用CTestWindow::Create函数。它是CFrameWnd对象的Create函数,因为CTestWindow从CFrameWnd继承了其行为。所以第一行中的代码指定了窗口大小应该为200×200个象素,窗口的左上角被初始化在屏幕的0,0位置处。常数rectDefault可用CRect参数来替代。-CStatic text the appearance of the first line in one click call CTestWindow:: Create function. It is a CFrameWnd object Create function, because CTestWindow inherited from CFrameWnd their behavior. So the first line of code specifies the window size should be 200 × 200 pixel, the window has been initialized in the upper left corner of the screen position 0,0. CRect parameter rectDefault constants can be used as substitutes.
- 2023-06-06 03:15:03下载
- 积分:1
-
CTicker:
这个类实现了水平字幕的滚动,支持背景色,前景色,边界颜色,字体,字体大小设置,滚动速度等。...
CTicker:
这个类实现了水平字幕的滚动,支持背景色,前景色,边界颜色,字体,字体大小设置,滚动速度等。-CTicker: This class achieved the level of rolling subtitles to support the background color, Foreground, border color, font, font size settings, scroll speed.
- 2022-07-14 12:35:33下载
- 积分:1
-
为了下载源码,上传了别人的程序,是一款能够显示波形的程序,很值得去学习一下...
为了下载源码,上传了别人的程序,是一款能够显示波形的程序,很值得去学习一下-In order to download the source code, upload someone else" s program, is a program capable of displaying the waveform, it is worthwhile to learn about
- 2022-10-04 03:00:04下载
- 积分:1
-
vb原代码,qing duoduo guanzhaoyixiaa
vb原代码,qing duoduo guanzhaoyixiaa -vb source, the Qing duoduo guanzhaoyixiaa
- 2022-02-03 15:31:06下载
- 积分:1
-
这是一个很不错的小体积的软件
这是一个很不错的小体积的软件-This is a very good small size of software
- 2022-02-27 00:19:12下载
- 积分:1
-
从CStatic控件派生的类,可以显示电子时钟,非常精美
从CStatic控件派生的类,可以显示电子时钟,非常精美-CStatic control derived from the class can demonstrate that the electronic clock, a very attractive
- 2022-09-12 02:25:03下载
- 积分:1
-
求余的逆的算法, 拥有许多其他功能,可以求指数求余,蒙格马利算法...
求余的逆的算法, 拥有许多其他功能,可以求指数求余,蒙格马利算法-for the inverse algorithm, has many other functions, I seek for index, the Montgomery algorithm, etc.
- 2022-01-28 06:12:41下载
- 积分:1
-
该代码提供了一个很好的曲线显示控件,可以使用鼠标对曲线上点进行拖动修改。...
该代码提供了一个很好的曲线显示控件,可以使用鼠标对曲线上点进行拖动修改。-The code provides a good curve shows controls, you can use the right mouse curve points Drive changes.
- 2022-05-07 07:51:52下载
- 积分:1