Homework 1 posted

4 views
Skip to first unread message

Marshall Pierce

unread,
Nov 3, 2010, 2:12:13 PM11/3/10
to hackerdojo-javaconcurrency
See http://code.google.com/p/hackerdojo-javaconcurrency/wiki/Homework
for details.
Also, the Chandy-Misra implementation of dining philosophers works now.

Ashutosh Chauhan

unread,
Nov 8, 2010, 12:57:31 PM11/8/10
to hackerdojo-ja...@googlegroups.com
Hi all,

After doing the homework posted by Marshall, I l looked for courses at
CS department websites at different university sites to find some
courses which is on this topic of concurrent programming in Java. I
was hoping to find some projects/homeworks/assignments on those sites
to practice what we are learning in class. Unfortunately, I wasn't
able to find any. Do any of you know about any such courses ?

By the way, I am attaching my solution for the homework1. If anyone
can provide critical review for it, it will be greatly appreciated.

PS: Marshall, thanks a lot for organizing these classes. They are
highly useful for me to learn concurrency.

Thanks,
Ashutosh

StringLen.java

Marshall Pierce

unread,
Nov 8, 2010, 6:34:22 PM11/8/10
to hackerdojo-javaconcurrency
On Nov 8, 9:57 am, Ashutosh Chauhan <hashut...@apache.org> wrote:
> Hi all,
>
> After doing the homework posted by Marshall, I l looked for courses at
> CS department websites at different university sites to find some
> courses which is on this topic of concurrent programming in Java. I
> was hoping to find some projects/homeworks/assignments on those sites
> to practice what we are learning in class. Unfortunately, I wasn't
> able to find any. Do any of you know about any such courses ?
>
> By the way, I am attaching my solution for the homework1. If anyone
> can provide critical review for it, it will be greatly appreciated.
>
> PS: Marshall, thanks a lot for organizing these classes. They are
> highly useful for me to learn concurrency.
>
> Thanks,
> Ashutosh
>
> On Wed, Nov 3, 2010 at 11:12, Marshall Pierce
>
>
>
>
>
>
>
> <marsh...@software.mpierce.org> wrote:
> > Seehttp://code.google.com/p/hackerdojo-javaconcurrency/wiki/Homework
> > for details.
> > Also, the Chandy-Misra implementation of dining philosophers works now.
>
>
>
>  StringLen.java
> 1KViewDownload


There is some information on http://www.cs.washington.edu/homes/djg/teachingMaterials/,
but it's more focused on Fork-Join, and we haven't covered that
(yet!).

I don't know of anything quite like our class, so I'm not surprised
you can't find other homeworks to do. I'm working on coming up with
some more by tomorrow's class.

Your implementation looks like the right idea, though since you don't
actually use the result of each calculation you can make it use
Runnables instead of Callables. Try using shutdownNow() to see if you
can get it to interrupt in-progress tasks that way.
Reply all
Reply to author
Forward
0 new messages