Alex Stojan

Greenhorn
+ Follow
since Sep 19, 2003
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 Alex Stojan

Hi all,
I passed the exam today with 88%. There were several questions that were a bit difficult (probably those that I missed), but the others were pretty easy. At one point I even thought to myself "... this exam will be peace of cake!". I finished the exam in about hour and a half, so I used the remaining time to check the questions that I marked.
I used two books: The Complete Java 2 Certification Study Guide by Heller and Roberts, and The Java Programming Language, 3rd ed. by Arnold, Gosling and Holmes.
I also went through one Marcus Green's exam (scored 83%), and I used extensively Dan Chisholm's topic exams (those were REALLY helpful, I strongly recommend them!). And last but not least, the JavaRanch, which undoubtedly helped clearing up certain points about the language.
Thank you all!
Alex
20 years ago
I tried to compile the code and it gave me a compiler error (cyclic "this" constructor calls ...)
Here it is:
http://www.danchisholm.net/apr18/topic/index.html
Hello,
Since the yield() method moves the currently running thread to the Ready state I don't think the thread releases the lock. My understanding is that the threads X and Y are taking turns simply because they are two threads running at the same time. Since the getI() method is synchronized after one thread completes it the other thread might get hold of the C object and enter the getI() method. I think the yield() method does not affect the order of Xs and Ys, and I think that any order is possible here.
Thanks,
Alex Stojan