With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Bidding period extended.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
I need help in a bigger development. I'm a java developer, so you can talk to me like to a professional.
I want to make it able for peers to join together, and send bytes to each other using ONLY one incrementable number!
But this number is very tricky: It can ONLY be fetched (getNumber), or incremented by one (incrNumber). And it usually misbehaves (thows exceptions) and slow (to get, or increment it takes time)!
The solution will be tested under:
1. $ java -version
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
2. Windows Vista
3. Hardware: 1 Core Intel CPU, 4GB Ram
Implementation level: (see teh attachment)
Implement the Peer interface: PeerImpl.
The Peer instances (running in in separate threads) can not use any other variables in common JUST
- The EmulatedPeerNumber.INSTANCE (that is thread safe).
- AND the time, more specifically: System.currentTi...
Sign in or Register to see more