Package org.jgroups.tests
Class ShmTest
java.lang.Object
org.jgroups.tests.ShmTest
Tests the speed of message sending/receiving via shared memory. Start the server first, then the client.
The server and client use a simple (and stupid) alternating bit protocol to rendezvous; this could be enhanced into
a ring buffer to increase performance.
- Since:
- 3.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NUM
protected static final int NUM- See Also:
-
SIZE
protected static final int SIZE- See Also:
-
PRINT
protected static final int PRINT- See Also:
-
MAX_BUSY_SPIN
protected static final int MAX_BUSY_SPIN- See Also:
-
-
Constructor Details
-
ShmTest
public ShmTest()
-
-
Method Details