OCPJP 6, OCMJD
OCPJP 6, OCMJD
Helen Ma wrote:Let me go home to double check about non-network mode specification.
In this mode, the database and GUI must run in the same VM and must perform no networking, must not use loopback networking and must not involve the serialization of any objects when communicating between GUI and database element.
..... this mode must use the database and GUI from the networked form, but must not use the network server code at all.
instructions.html wrote:You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
Helen Ma wrote:It does not mention anything about creating multiple threaded clients (multiple GUI's) , reading/writing the db file concurrently.
Roel De Nijs wrote:When i read the instructions carefully I notice this sentence:
instructions.html wrote:You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
Helen Ma wrote:It does not mention anything about creating multiple threaded clients (multiple GUI's) , reading/writing the db file concurrently.
So that means you have different instructions (if you didn't encounter that sentence) or you are not able to read instructions carefully and understand them.
You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
OCPJP 6, OCMJD
OCPJP 6, OCMJD
instructions.html wrote:You may assume that at any moment, at most one program is accessing the database file;
Glen Iris wrote:I will be coding my application to deal with multiple clients running on one JVM accessing one local db file.
in many different command line windows on one machine.java -jar <path_and_filename> <local_mode>
OCPJP 6, OCMJD
Roel De Nijs wrote:
Helen Ma wrote:Do we need to create multiple threads to read/write the db file in standalone mode?
No.
Helen Ma wrote:So, Roberto's Data test involves threads doing concurrently updating/findings...
Roel De Nijs wrote:The purpose Roberto's Data Class test is simply to check if your Data class is thread-safe. So you'll get an answer on the question "can my Data class handle multiple concurrent requests from different threads without corrupting the data or hanging forever".
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
If you're gonna buy things, buy this thing and I get a fat kickback:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|