Forums Register Login

(NX)Must I use "LockManager"??

+Pie Number of slices to send: Send
I don't have a "LockManager" class,I just use a HashMap to store cookies.
So will I lose points on it??
+Pie Number of slices to send: Send
Hi Biang,
No, you do not have to have a LockManager, and you will not loose points if you dont have one.
Regards, Andrew
+Pie Number of slices to send: Send
 

Originally posted by biang lin:
I don't have a "LockManager" class,I just use a HashMap to store cookies.


But how do you pass the cookies? The DBMain interface passes the recno parameter only. This means you would violate the DBMain interface and thereby violate the assignment requirements. Or did i miss something?
+Pie Number of slices to send: Send
Hi Arjan
There are many different versions of the three different assignments. Some versions require cookies to be returned by the lock method and used in other methods. Other versions do not allow cookies to be used within any of the methods of the Data class.
If Biang has one of the assignments that allows him to return a long cookie from his lock method, then he can store that cookie inside a map within the Data class.
Regards, Andrew
+Pie Number of slices to send: Send
 

Originally posted by Andrew Monkhouse:
There are many different versions of the three different assignments.


Oeps, didn't think of that.
+Pie Number of slices to send: Send
Hi all,
Thanks for your comments.
I think locking is very simple in my project,so I didn't use LockManager.
But I have another question:
There are 80 points in the Marking Criteria for Locking, so it is very important in the project.
But I think it need only a little code to do it(two methods and about 20 lines of code).
So what these 80 points for?
+Pie Number of slices to send: Send
This is one of those cases where less is more
M
+Pie Number of slices to send: Send
 

Originally posted by Max Habibi:
This is one of those cases where less is more
M


"Less is more"!!
Ha, I like it.
+Pie Number of slices to send: Send
Unlike, say, Max's hair - where less is simply less.
You got style baby! More than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 563 times.
Similar Threads
Data Object/LockManager
trouble having ultiple LockManager instances
Hashtable's put method problem in locking
Implementing Lock/Unlock using Event delegator
hi Mark! need your opinion. "lock()"
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:35:09.