Tagged Questions
2
votes
1answer
50 views
Dining Philosophers problem Solution with Java Reentrant Lock
I have implemented Dining Philosopher problem using ReentrantLock in java.
The goal of this program is
Every philosopher should follow the workflow of think,getchopsticks,eat,putchopsticks (No ...
2
votes
1answer
92 views
Review of simple Java Actor library
How can I improve this code?
Also available from git://github.com/edescourtis/actor.git .
Actor.java
package com.benbria.actor;
public interface Actor<T> extends Runnable {
public ...
1
vote
1answer
43 views
Java - Is this the correct implementation of a timer/timertask to destroy a process that overruns a defined time limit
I was wondering if this is the correct implementation of a times task to destroy a thread after it overruns a predefined time period:
it works by creating a getting the thread from ...
1
vote
1answer
1k views
Multithreaded Client-Server file downloading application
A multithreaded client server program to download image files. If you want to execute it on your machine you should change the file paths. Since there are four files to download the client makes the ...
0
votes
1answer
28 views
Ensuring my program is thread safe
I have a class which is responsible for waiting until a message is added to a message list and then sending it off to get processed
withdrawMessages - waits for message. I wait a total of 2 minutes ...
2
votes
0answers
52 views
Help making multi-platform and removing redundancies in “Auto-Updater”
I whipped up some code recently, but due to the way I make a process this can only be run on windows.... doesn't work QUITE how I want it to either. I would love to get some advice from a more ...
1
vote
0answers
32 views
Communication with GARMIN throught WEB (Java Socket Programming Code Review)
I am developing a WEB based GPS system and one of its functionallity is to be able to send messages and routes to GARMIN devices.
I have never been using sockets before and for some (obvious) reason ...
1
vote
0answers
71 views
MixpanelAPI - my first open source project
I would love to hear feedback on my first open source project (a very simple async API for Mixpanel)
It implements a REST client for this REST HTTP API
Review requested on the following aspects:
...
0
votes
0answers
55 views
Finding Potential Thread Safety issues and Race conditions in my Multithreading Code
I am working on a project in which I have two tables in a different database with different schemas. So that means I have two different connection parameters for those two tables to connect using ...
-1
votes
0answers
83 views
What is needed to bring the website down?
I am running windows 7 (32 OS),on intel core 2 duo processor and 4 GB RAM. For learning purposes I was trying a Spam attack on a local website with the code written in java. I started the application ...