⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rendezvouscondition.java

📁 a simple java mutlti thread concurrency program src code
💻 JAVA
字号:
package Synchronization;import java.util.Vector;public interface RendezvousCondition {/* * The information available to the checkCondition method is: *   the particular message being evaluated, *     blockedMessages.elementAt(messageNum); *   the queue of blocked messages itself, blockedMessages; and *   the number of blocked servers, numBlockedServers. * This is the state of the ConditionalRendezvous object.  The particular * message can be checked to see if it meets the condition and this test * may involving counting how many blocked messages meet some other criterion * and/or the number of blocked servers. * * We are depending on the programmer not to mess with the blockedMessages * Vector.  The ConditionalRendezvous object is graciously making it * available, so do not abuse! */   public abstract boolean checkCondition      (int messageNum, Vector blockedMessages, int numBlockedServers);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -