sabotage ,come in pls.

sargee (sargee)
There is one thing should be clarified, pls see the following code:
struct pthread_start_args {
void * (*start_routine)(void *); /* function to run */
void * arg; /* its argument */
sigset_t mask; /* initial signal mask for thread */
int schedpolicy; /* initial scheduling policy (if any) */
struct sched_param schedparam; /* initial scheduling parameters (if any) */
IMHO, such code can not be called as C++, it is still C code, an structural C code.

In Linux, as I know, message queue and I/O are writen by pure C, I have not seen the source code of pthread (just look through it and hope you give some help on it :--) ), but IPC is made up with C.

All in all, C has borrowed something from C++, but it is still C.
2001-8-8 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: 请教在加的大虾:Unix下的C编程(包括IPC, 多线程,Pro*C操作Oracle数据库等)在加好找工作吗?

Back To Forum: HOME枫下论坛枫下论坛主坛加国之约移民留学申请