Results 1 to 4 of 4

Thread: testing threads

  1. #1
    phoenox7 is offline Member
    Join Date
    Feb 2013
    Rep Power

    Default testing threads

    i'm trying to write test cases for my codes and i am stuck on how to begin this. anyone available to help

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

    Default 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.

  3. #3
    phoenox7 is offline Member
    Join Date
    Feb 2013
    Rep Power

    Default 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!

    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);

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: testing threads

    Don't start a new thread for a follow-on post, and especially not when you haven't bothered to reply to responses in the earlier started thread.

    I've merged the two threads here.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. [SOLVED] Just testing...
    By pbrockway2 in forum Forum Lobby
    Replies: 2
    Last Post: 02-19-2013, 07:53 PM
  2. Whitebox testing and testing tables, help please
    By Stefano in forum New To Java
    Replies: 2
    Last Post: 02-07-2013, 06:02 AM
  3. Threads per Connection or Threads per Request
    By Felic in forum New To Java
    Replies: 4
    Last Post: 11-22-2011, 10:15 PM
  4. Junit testing, testing list<e> interface
    By mackavelirip in forum New To Java
    Replies: 0
    Last Post: 10-05-2011, 07:08 AM
  5. Testing if it is an Int and if not ask again
    By Alexander_003 in forum New To Java
    Replies: 2
    Last Post: 11-27-2010, 01:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts