void* job(void* a) { int result[2]; ...
pthread_exit((void*)result); }
int main() { int* status; ...
pthread_join(thread,(void**)status); printf("%d %d", status[0], status[1]); }
이런식으로 했는데 값이 제대로 안 나오더라고요 .. 뭐가 잘 못된는지 콕찍어 주세요
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
댓글 달기