Clivant Yeo
My Personal Website
SCJP
-------------------------------<br />OCP 9i <br />SCJP/SCJD/SCWCD(92%)/SCDJWS<br />XML(IBM Test 141)<br />Who is the next?SCBCD<br />SCBCD/CCNA/CCNP/PMP<br />not sure
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Congratulations.... [jumpingjoy]
Could you tell us how you implement the server. You use a single Data object or each client has its own Data object to access the file? Thanks a million
[ January 07, 2005: Message edited by: Walter Tang ]
--------------------
SCJP
Clivant Yeo
My Personal Website
I am trying to do it like this:
the server built one buffer for the file.
All the clients try to access the same buffer.
In theory,this is the best way which fit the C/S structure.
Is it right?
Clivant Yeo
My Personal Website
Congratulations Clivant [beerchug]
Clivant Yeo
My Personal Website
Clif quote:
"I did memory caching for the file and all clients will access the same buffer. However, there is a danger of the OutOfMemoryError. I justify this danger as not applicable to the scenario as my database file do not need to grow. "
B: Congratulations Clif...
I have a question regarding the danger of the outofmemoryerr.
can we have outofmemory error if the records size is too many to be load into memory, as i know it will be handled by operating system by caching/swapping it to the disk(virtual memory)?
please correct me, thanks...
--------------------------------------------------------------------------
Clivant Yeo
My Personal Website
Hi Clivant, you got 80/80 for locking, did you take orphan locks(i.e lost clients) into consderation?
Clivant Yeo
My Personal Website
Thanks Clivant. I am using RMI, just looking at the various ways how lost clients are handled. Some say, this is beyond the scope of the requirements but people who got 44/80 on the locking might have not handled lost clients eventhough they felt confident in their locking solution.
Clivant Yeo
My Personal Website
Clivant,
"The OutOfMemoryError is thrown by the java virtual machine when memory consumption is too much for it to handle. Having too much record in the Java Virtual Machine's memory heap will cause the phenomenon"
b: doesn't The OS always allocates contiguous memory space to the JVM(heap fragmentation)???
i want to convinced in what case a outofmemory error htrown by jvm.
please correct me,...thanks
Clivant Yeo
My Personal Website
I am trying to do it like this:
the server built one buffer for the file.
All the clients try to access the same buffer.
In theory,this is the best way which fit the C/S structure.
Is it right?
Clivant Yeo
My Personal Website
Congratulations Clivant! [beerchug]
Clivant Yeo
My Personal Website
-------------------------------<br />OCP 9i <br />SCJP/SCJD/SCWCD(92%)/SCDJWS<br />XML(IBM Test 141)<br />Who is the next?SCBCD<br />SCBCD/CCNA/CCNP/PMP<br />not sure
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Destroy anything that stands in your way. Except this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|