Hey even i got confused !

I tried following and found that even for the highest priority thread(Priority = 10) , the scheduler does not stop scheduling low Priority thread.
CODE-------
class th1extends Thread
//class FThreadimplements Runnable
{
public void run()
{
while (true){
System.out.println( Thread.currentThread().getName() + " running!" );
try{
Thread.sleep( 1000 );
}
catch ( InterruptedException e ){}
}
}
}
public class Pri{
public static void main(
String[] args ){
//Thread my = new Thread( new FThread() );
th1 my = new th1();
my.setName("my");
my.setPriority(2);
my.start();
try{
Thread.sleep( 1000 );
}
catch ( InterruptedException e ){}
th1 t1 = new th1();
t1.setPriority(10);
t1.setName("t1");
t1.start();
}
}
The OUTPUT i got is...
my running!
t1 running!
my running!
t1 running!...
I use win98 and I think Win98, being a time sliced system, it intterupts the higher Priority thread for a lower one.
So the option should be wrong as it depends on OS.
Correct me if i am wrong!
Rashmi