vxWorks에서 thread 실행 관련
글쓴이: coathanger / 작성시간: 금, 2007/05/04 - 8:21오후
안녕하세요.
vxWorks 기반의 시스템에서 작업을 하고 있습니다.
현재 기능상 thread를 사용을 해야 하는데 vxWorks에서 아래 같은 간단한 thread가 제대로 실행이 안되네요.
컴파일은 문제 없이 잘 되는데 실행 시 메모리 관련 에러가 납니다.
도움이 필요합니다..
void *thread_function(void *arg)
{
int i;
for(i = 0 ; i < 9 ; i++)
{
sleep(2);
puts("thread Excute");
}
}
void testtest(void)
{
int state;
pthread_t t_id;
state = pthread_create(&t_id, NULL, thread_function, NULL);
if(state != 0)
{
puts("thread Error!");
exit(1);
}
sleep(50);
}실행 결과 아래 처럼 에러가 발생 합니다.
Uninitialized Interrupt! Vector number 0 (0-255). Non operational vector Program Counter: 0x80181efc Status Register: 0x1000ff01 thread Error!
Forums:


task로는 어려운가요?
http://kldp.org/node/80275 에 문제가 아직도 해결이 안되신 모양이네요. /애도
VxWorks의 task를 한 번 써보세요. Inter-task 매커니즘들이 있는데, IPC하고
비슷합니다.
I think, therefore I am.
----
I think, therefore I am.
댓글 달기