• Post Reply Bookmark Topic Watch Topic
  • New Topic

system date change effect on green threaded application

 
Sidh Shah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My application running on green thread in jre1.3
It's a multi threaded application
Now , when I update system time in past then all the threads stop to execute
& if i update system time in future threads run normally

How ever in execution on native thread mode,there is a normal behavior for threads that no effect of system time change for threads

I want to know how this thing is possible in green thread while scheduling handled by jvm it self
 
Henry Wong
author
Sheriff
Posts: 22519
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been a very long time since I used a JVM that had green threads -- so take this with a grain of salt.

I believe I encountered this many years ago, And the answer was that the green thread scheduler used the system time to timeslice. So, if you mess with the system time, you messed with the scheduler.

Henry
 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Henry Wong:
It has been a very long time since I used a JVM that had green threads -- so take this with a grain of salt.

I believe I encountered this many years ago, And the answer was that the green thread scheduler used the system time to timeslice. So, if you mess with the system time, you messed with the scheduler.

Henry

hmm after a long time I again heard about green threads. why do we need green threads and what care must be taken while coding. googled the topic but havent found anything useful.
 
Ajay Saxena
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do we need green threads and what care must be taken while coding.


Green threads are required on OS platforms with no native support for threads.They are a user space thread implementation.
[ September 13, 2008: Message edited by: Ajay Saxena ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!