Hello,
i have 2 questions:
1. Can I get the current memory usage of a thread?
2. Can I use a member-function as (void*)(*)(void*) method to create a new thread with "pthread_create(...)"??
I would be happy about any suggestion.
Regards,
Rolf (2 Replies)
pthread_create(&tid, &Attr, A, NULL);
pthread_create(&tid, &Attr, B, NULL);
pthread_create(&tid, &Attr, C, NULL);
A,B,C are the name of the functiont that the thread excute
Hi all !
I want to ask so with these commands ,how the program will excute .
What the way it will do .
Please... (0 Replies)
Can you please let me know how to resolve this error:
cc pc1.c
/tmp/cc2os7n1.o: In function `main':pc1.c:(.text+0x89): undefined reference to `pthread_create'
collect2: ld returned 1 exit status (3 Replies)
hello,
I have wrote a multi thread application to run under uclinux.
the problem is that threads does not share data. using the ps command it shows a single process for each thread.
I test the application under Ubuntu 8.04 and Open Suse 10.3 with 2.6 kernel and there were no problems and also... (8 Replies)
Hi,
I have a script below for extracting xml from a file.
for i in *.txt
do
echo $i
awk '/<.*/ , /.*<\/.*>/' "$i" | tr -d '\n'
echo -ne '\n'
done
.
I read about using multi threading to speed up the script.
I do not know much about it but read it on this forum.
Is it a... (21 Replies)
So I am trying to learn C and am coding some scripts on my own.
For a start I have decided to port the shell script developed by wisecracker into C.( Here is the link to that script A simple reminder script for beginners to shell scripting. | Unix Linux Forums | OS X (Apple) )
This is what I... (7 Replies)