• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

system date change effect on green threaded application

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic