Results 1 to 4 of 4
Thread: testing threads
- 02-24-2013, 07:03 AM #1
Member
- Join Date
- Feb 2013
- Posts
- 3
- Rep Power
- 0
-
Re: testing threads
Please do not double post questions in the forum. I've had to lock your duplicate question.
Consider posting more details on your problem since usually the better the question, the better the answer. For your question about all I can figure out doing is to give you a link to the Java tutorials: The Really Big Index. But if you can tell us and show us more, we'll likely be much better able to give you more specific help. A good rule of thumb is to put as much effort into writing your question as you'd like a volunteer to expend answering it.
- 02-24-2013, 11:13 AM #3
Member
- Join Date
- Feb 2013
- Posts
- 3
- Rep Power
- 0
Thread case, please check :D
Hi guys,
I hope you can help me with my test case. I am currently writing a test case for my condition variable case to see if the thread is asleep, or awake. Below are a few lines of what I have and just curious if you guys can help me out with the organization since I am still a noob at this stuff. Any help is appreciated!
Thanks!
package nachos.threads;
import nachos.machine.*;
public class Condition2Tester {
public Condtion2Tester(Lock condition) {
this.conditionLock = conditionLock;
}
//checks to see if the thread is running
public Condition2Tester(Check thread condition)
display.getThread = getThread;
Thread.currentThread = currentThread;
if (display.getThread() == Thread.currentThread()) {
System.out.println("thread" + getThread + " is running");
System.out.println("thread" + currentThread + "is running");
}
//checks to see if thread is asleep
public void WakeUpTest()
{
if (Thread.CurrentThread.ThreadState == ThreadState.WaitSleepJoin);
Thread.CurrentThread.Interrupt();
}
- 02-24-2013, 02:12 PM #4
Similar Threads
-
[SOLVED] Just testing...
By pbrockway2 in forum Forum LobbyReplies: 2Last Post: 02-19-2013, 06:53 PM -
Whitebox testing and testing tables, help please
By Stefano in forum New To JavaReplies: 2Last Post: 02-07-2013, 05:02 AM -
Threads per Connection or Threads per Request
By Felic in forum New To JavaReplies: 4Last Post: 11-22-2011, 09:15 PM -
Junit testing, testing list<e> interface
By mackavelirip in forum New To JavaReplies: 0Last Post: 10-05-2011, 06:08 AM -
Testing if it is an Int and if not ask again
By Alexander_003 in forum New To JavaReplies: 2Last Post: 11-27-2010, 12:09 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks