jianqiang huhu

Greenhorn
+ Follow
since Nov 26, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jianqiang huhu

Hi guys:
I am going to study the web knowledge and want to get the SCWD, could anybody can tell me where can I get the suitable information?
Thanks
Class A and Class B are all running in a same application,so you if you exit the application in Class B, so Class A also can not contine to run.
If you only want want to close Class B and not Class A, you can use the this.dispose() or this.setVisible(fales) to close the object of Class B.
Hope helps!
21 years ago
Thanks!
so I will upload my assignment,do I need to send an email to Sun before upload the assignment?
Hi guys:
Thanks for your reply!

When your thread is in the waiting state, it IS blocked, so there is no violation of Sun's requirement.


yes,when my thread is in the waiting state,it is not blocked,but have ot give off the object lock of syrnchonzied block,it is different with Sun's instruction:

The lock method should block until the requested lock can be applied


Maybe it means before you lock the record,you will stay in the lock() method and other threads can not access this method,is right?
Hi Mark,Peter and other guys:
I read the instruction again,and I found my assignment are not match the requirement at two points:
In Sun instrution:

The lock method should block until the requested lock can be applied


In my assignment:
public syrnchonized lock(int recNum,Object clientId){
....
if (the record was locked by other cliend)[
wait();
}
}
When the record that you want to lock was locked by other client,you will go to the waiting pool and give up the objec lock of lock() mehtod,so other cliend can access the mehod. The lock() method was not block,would I will lost the point?

To connect with your server,you should create a client program.This implementation should include a class that implements the same pulbic methods as the Data class,although it will need different constructors to allow it to support the network configuration.


On my client side,I define a LocalModel class implements the DataAccess interface,which contains the all public methods of Data class,but this class is only used for local database,donot need different constructors to support network.For the remote object,I get a reference of remote object and invoke the remote methods through the reference,I also donot need the network configuration.
Do I need to change my design?