摘要 |
A device and a method for scheduling threads in a virtual machine are provided to prevent deterioration of an interpreter performance without requiring a routine for checking whether each bytecode is scheduled or not, as a time of point in which the threads of the virtual machine is scheduled is based on a counter value of a system clock. A JBT(Java Bytecode Translator) manager(311) converts the bytecode of the virtual machine into a native code and schedules the threads based on the system clock. A database cache(312) stores the converted native code. A B2C cache(313) maps an address of the bytecode to the native code stored in the DB cache. A JBT resister(314) performs communication with a processor and the JBT manager. The JBT manager includes a multiplexer(311a) receiving a counter value of the system clock, and a down-counter(311b) changing the counter value whenever the system clock is received and determining to schedule the thread based on the counter value.
|