在 Solaris 线程环境中,请使用以下选项来编译和链接应用程序:
cc -D_REENTRANT -D POSIX_THREAD_SEMANTICS [flags] file ... [-l rt]