機能対応表
Thread
| Java | ThreadJack | UI | POSIX | vxworks |
| Thread() | TJThread(unsigned) | thr_create() | pthread_attr_init()
pthread_attr_setstacksize() pthread_attr_setscope() pthread_create() |
taskInit() |
| Thread(Runnable) | TJThread(TJRunnable*, unsigned) | thr_create() | pthread_attr_init()
pthread_attr_setstacksize() pthread_attr_setscope() pthread_create() |
taskInit() |
| Thread(Runnable, String) | TJThread(TJRunnable*, const char* name, unsigned) | thr_create() | pthread_attr_init()
pthread_attr_setstacksize() pthread_attr_setscope() pthread_create() |
taskInit() |
| Thread(String) | TJThread(const char*, unsigned) | thr_create() | pthread_attr_init()
pthread_attr_setstacksize() pthread_attr_setscope() pthread_create() |
taskInit() |
| Thread(ThreadGroup, Runnable) | 未サポート | - | - | - |
| Thread(ThreadGroup, Runnable, String) | 未サポート | - | - | - |
| Thread(ThreadGroup, String) | 未サポート | - | - | - |
| activeCount() | activeCount() | 未使用 | 未使用 | 未使用 |
| checkAccess() | 未サポート | - | - | - |
| countStackFrames() | 未サポート | - | - | - |
| currentThread() | currentThread() | 未使用 | 未使用 | 未使用 |
| destroy() | 未サポート | - | - | - |
| dumpStack() | 未サポート | - | - | - |
| enumerate() | 未サポート | - | - | - |
| getContextClassLoader() | 未サポート | - | - | - |
| getName() | getName() | 未使用 | 未使用 | 未使用 |
| getPriority() | getPriority() | thr_getprio() | pthread_getschedparam() | taskPriorityGet() |
| getThreadGroup() | 未サポート | - | - | - |
| interrupt() | 未サポート | - | - | - |
| interrupted() | 未サポート | - | - | - |
| isAlive() | isAlive() | 未使用 | 未使用 | 未使用 |
| isDaemon() | 未サポート | - | - | - |
| isInterrupted() | 未サポート | - | - | - |
| join() | join() | 未使用 | 未使用 | 未使用 |
| join(long) | join(long) | 未使用 | 未使用 | 未使用 |
| join(long, int) | 未サポート | - | - | - |
| resume() | 未サポート | - | - | - |
| run() | run() | 未使用 | 未使用 | 未使用 |
| setContextClassLoader() | 未サポート | - | - | - |
| setDaemon() | 未サポート | - | - | - |
| setName() | setName() | 未使用 | 未使用 | 未使用 |
| setPriority() | setPriority() | thr_setprio() | pthread_setschedparam() | taskPrioritySet() |
| sleep(long) | sleep() | nanosleep() | nanosleep() | taskDelay() |
| sleep(long, int) | 未サポート | - | - | - |
| start() | start() | thr_continue() | 未使用 | taskActivate() |
| stop() | 未サポート | - | - | - |
| stop(Throwable) | 未サポート | - | - | - |
| suspend() | 未サポート | - | - | - |
| toString() | 未サポート | - | - | - |
| yield() | yield() | thr_yield() | sched_yield() | sched_yield() |
| 無し | setJoinable() | 未使用 | 未使用 | 未使用 |
| 無し | isJoinable() | 未使用 | 未使用 | 未使用 |
| 無し | exit() | thr_exit() | pthread_exit() | taskDelete() |
| 無し | getThreadID() | 未使用 | 未使用 | 未使用 |
| 無し | getThread() | 未使用 | 未使用 | 未使用 |
| 無し | currentThreadID() | thr_self() | pthread_self() | taskIdSelf() |
| 無し | putData() | 未使用 | 未使用 | 未使用 |
| 無し | getData() | 未使用 | 未使用 | 未使用 |
Object
| Java | ThreadJack | UI | POSIX | vxworks |
| Object() | TJSyncObject() | cond_init()
mutex_init() |
pthread_cond_init()
pthread_mutex_init() |
semBCreate() |
| 無し | TJSyncObject(const TJSyncObject&) | cond_init()
mutex_init() |
pthread_cond_init()
pthread_mutex_init() |
semBCreate() |
| clone() | 未サポート | - | - | - |
| equals() | 未サポート | - | - | - |
| finalize() | 未サポート | - | - | - |
| getClass() | 未サポート | - | - | - |
| hashCode() | 未サポート | - | - | - |
| notify() | notify() | cond_signal() | pthread_cond_signal() | semGive() |
| notifyAll() | notifiAll() | cond_broadcast() | pthread_cond_broadcast() | semFlush() |
| toString() | 未サポート | - | - | - |
| wait() | wait() | cond_wait() | pthread_cond_wait() | semTake() |
| wait(long) | wait(long) | cond_timedwait() | pthread_cond_timedwait() | semTake() |
| wait(long, int) | 未サポート | - | - | - |
| synchronized keyword | lock() synchronzied macro |
mutex_lock() | pthread_mutex_lock() | samTake() |
| synchronized keyword | unlock() synchronized macro |
mutex_unlock() | pthread_mutex_unlock() | semGive() |
| 無し | unlockTemporarily() unsynchronized macro |
mutex_lock()
mutex_unlock() |
pthread_mutex_lock()
pthread_mutex_unlock() |
semTake()
semGive() |
| 無し | restoreLock() unsynchronized macro |
mutex_lock() | pthread_mutex_lock() | semTake() |
