Search the web
Sign In
New User? Sign Up
javajousters · Java Algorithms Challenges Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
A couple of possible bugs in the arena applet.   Message List  
Reply | Forward Message #811 of 846 |
Re: A couple of possible bugs in the arena applet.

--- In javajousters@yahoogroups.com, "Leonardo Boselli" <boselli@...>
wrote:

> I tried comparisons a lot of years ago and the behaviors of threads
were
> very different. Now they could be more uniform.

Possibly. They still seem to be different in various ways which make
using thread priorities very difficult, if not impossible. see
http://cs-people.bu.edu/sowmya/htdocs/threadsTest.html for some
interesting graphs. Sometimes the lower priority threads actually get
more cpu time!

In fact, I see that the threading model of the JVM doesn't guarantee
that the thread priorities actually have any effect, and states that
they shouldn't be relied on for any algorithmic use. Thus any
solution to this problem shouldn't use them.

Also there is no guarantee of the thread implementation using
timeslicing, so it really shouldn't be relied on either. Thus the use
of yield() in the current implementation is correct and necessary.


>Anyway, because of time
> constraints, I think that, for the moment, it's better to remove the
jtobots
> that slow down the simulation and ask to their authors to fix their
code.

OK. I see that this has been done already, and that TTL has been fixed.


> In the meantime, if you have modified the code of the simulator
(using API
> compatible with older versions of the JDK), feel free to send it to me
> (please, mark clearly the changes, thank you in advance!)

I don't have anything at the moment, but I may do in the future. Thanks.


Cheers, Tim.




Wed Jun 20, 2007 10:49 am

timfoden
Offline Offline
Send Email Send Email

Forward
Message #811 of 846 |
Expand Messages Author Sort by Date

Hi All. I'm new here, but I've been mucking around with JRobots for a couple of months or so now (I'm the author of Spike BTW), and I think I've found a couple...
timfoden
Offline Send Email
May 25, 2007
12:42 pm

From: timfoden Sent: Friday, May 25, 2007 2:41 PM Subject: [javajousters] A couple of possible bugs in the arena applet. ... Welcome, timfoden! Your Spike...
Leonardo Boselli
javajousters
Offline Send Email
May 25, 2007
3:44 pm

... League. Thanks. ... waiting for ... Well, I'm not sure about beating Tango. :) But I'll see what I can come up with. ... to lose? ... I don't think any of...
timfoden
Offline Send Email
May 25, 2007
5:17 pm

... Looking at this a bit further, it may be possible to fix this by monitoring the amount of cpu time each thread has been using. But the facility to find...
Tim Foden
timfoden
Offline Send Email
May 30, 2007
6:33 am

From: "Tim Foden" tim_yahoo@... Date: Wed, 30 May 2007 07:33:32 +0200 To: javajousters@yahoogroups.com Subject: [javajousters] Re: A couple of possible...
boselli@...
javajousters
Offline Send Email
May 30, 2007
10:34 am

... One possibility that you might want to keep in mind when investigating this problem and its possible solutions is that the slowdown caused by some robots...
Alan Lund
zeke3099
Offline Send Email
May 30, 2007
1:22 pm

... investigating this ... (JJVector's) ... collector. If ... CPU time ... OK. Good point ... goes away and adds a CPU usage window to arena applet ... time...
Tim Foden
timfoden
Offline Send Email
May 31, 2007
4:37 pm

... Well, I'm afraid I haven't found any way to get the thread cpu usage data from any JDK version before 1.5 (apart from using JNI, but that gets silly). I'd...
Tim Foden
timfoden
Offline Send Email
May 31, 2007
5:11 pm

From: Alan Lund Sent: Wednesday, May 30, 2007 3:15 PM Subject: Re: [javajousters] Re: A couple of possible bugs in the arena applet. ... Hi Alan! It's a long...
Leonardo Boselli
javajousters
Offline Send Email
May 31, 2007
9:11 am

From: Tim Foden To: javajousters@yahoogroups.com Sent: Thursday, May 31, 2007 7:11 PM Subject: [javajousters] Re: A couple of possible bugs in the arena...
Leonardo Boselli
javajousters
Offline Send Email
Jun 1, 2007
3:57 pm

... because ... Well, I'd be a shame to lose TTL, as it is quite strong now, and has been recently added. Kraft though, hasn't been improved since May 2004, so...
Tim Foden
timfoden
Offline Send Email
Jun 1, 2007
4:39 pm

From: Tim Foden Sent: Friday, June 01, 2007 6:38 PM Subject: [javajousters] Re: A couple of possible bugs in the arena applet. ... However, its author can...
Leonardo Boselli
javajousters
Offline Send Email
Jun 2, 2007
12:52 pm

... were ... Possibly. They still seem to be different in various ways which make using thread priorities very difficult, if not impossible. see ...
Tim Foden
timfoden
Offline Send Email
Jun 20, 2007
10:49 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help