ubuntu-10.04
Question about memory leak happening in the child process
Assume that the function func has bugs so that it leaks memory. pid_t childPid; int status; childPid = fork();[详细]
2023-03-21 07:41 分类:问答How does parent process get the termination status through wait from a child process which calls _exit
I have read the following statement. The status argument given to _exit() defines the termination status of[详细]
2023-03-21 03:47 分类:问答what is the meaning of restrict in the function signature?
int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg);[详细]
2023-03-20 00:08 分类:问答viewing IE on linux problem
i am following the following steps from website: http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu[详细]
2023-03-19 20:47 分类:问答Need help with java programming!
i am new to java and i just made my first program: HelloWorld and after i compiled it I tried to run it and it gave me this error:[详细]
2023-03-19 15:38 分类:问答After fork, do the parent and child process share the file descriptor created by pipe?
int main() { int data_processed; int file_pipes[2]; const char some_data[] = \"123\"; char buffer[BUFSIZ + 1];[详细]
2023-03-19 11:57 分类:问答loadbalancing in Ubuntu servers with MapServer
I have 3 Ubuntu 10.04 machines with MapServer installed and configured. I need to get load balancing among those 3 machines. I find that there are some third-party applications with different features[详细]
2023-03-18 20:55 分类:问答how does pthread_join populate the variable of thread_result
Note: I have removed all required error checking in the following snippet. ... void *thread_function(void *arg)[详细]
2023-03-18 19:29 分类:问答Is PTHREAD_STACK_MIN defined differently in Ubuntu 10.04 then on Ubuntu 9.04?
First it seems as if the location of definition has changed: in 9开发者_StackOverflow中文版.04 its somewhere through pthread.h and in 10.04 its through limits.h (can someone please confirm it? where i[详细]
2023-03-18 05:24 分类:问答How does the echo | g++ work in the following script
Based on gcc: Do I need -D_REENTRANT with pthreads? > echo | g++-E -dM -c - > singlethreaded > echo | g++ -pthread -E -dM -c - > multithreaded[详细]
2023-03-17 18:23 分类:问答