The thread tag has no wiki summary.
4
votes
2answers
450 views
Are kernel threads really kernel processes?
I've read in many places that Linux creates a kernel thread for each user thread in a Java VM. (I see the term "kernel thread" used in two different ways:
a thread created to do core OS work and
a ...
2
votes
0answers
24 views
Which Unix don't have a thread-safe malloc? [migrated]
I want my C program to be portable even on very old Unix OS but the problem is that I'm using pthreads and dynamic allocation (malloc). All Unix I know of have a thread-safe malloc (Linux, *BSD, Irix, ...
2
votes
0answers
397 views
`[java] <defunct>` with defunct children -> Any way to collect them?
Relating to question : What if 'kill -9' doesn't work?
I have following situation : zombie process with threads, not collected by init :
[root@Arch64]# ps auxH | grep java
gwpl 569 ...
1
vote
1answer
41 views
Are threads which are executing blocking system calls awoken by interrupts?
I've been reading a bit about threads and interrupts. And there is a sections which says that parallel programing using threads is simpler because we don't have to worry about interrupts.
However, ...
1
vote
1answer
452 views
What is kondemand?
I have searched the web for the answer of this question but couldn't find a clear answer. Best answer I found was as follows:
kondemand is a kernel thread that belongs to the ondemand governor of
...
1
vote
1answer
25 views
How do I set affinity of a particular thread on FreeBSD?
As the title says, I'm trying to figure out how to set the affinity of a particular thread (but not the entire process) on a FreeBSD system.
On Linux, I'm able to do this with ps -L uH [pid], ...
1
vote
1answer
200 views
Native and non-native support of thread/process programming in Linux?
POSIX thread (pthread) and OpenMP are both libraries for thread programming. But is it right that they are not native to Linux, i.e. they have to be installed by user later?
If yes, what are the ...
1
vote
1answer
212 views
Bafflingly baroque Debian ps: show threads in forest tree
My favourite ps invocation is:
ps -efww ef
as I need to watch all processes (-e), get extended information about them (-f), see the environment (e) they operate within, wrapping lines (-w -w) so I ...
0
votes
1answer
554 views
critical section for linux
In linux or a library for linux, is there an equivalent to critical section in win32?
I am aware of Mutex, but it is not the same as critical section since a critical section uses user-mode spinlock ...
0
votes
1answer
314 views
What is the advantage of using pthreads in Linux?
I read somewhere that Linux threads are really implemented as processes in the kernel since with today's hardware and on the Linux platform, the thread model is inefficient compared to the process ...
0
votes
1answer
73 views
What's a NM thread?
I am studying OCFS2 kernel source code and I found this comment of function dlm_lanuch_thread in file fs/ocfs2/dlm/dlmthread.c:
/* Launch the NM thread for the mounted volume */
So what does the ...
0
votes
2answers
378 views
Tomcat does not get enough memory
i'm trying to setup a jira instance on my vServer.
I've got min. 1 GB ram and max. 2 GB ram.
It was runing on my friends Server with only 512 MB ram.
The first error was:
...
0
votes
0answers
26 views
How can I see a process' thread count? [duplicate]
Possible Duplicate:
Is there a way to see details of all the threads that a process has in Linux?
I want to see the thread count which belongs to a process in linux. What command should I ...
0
votes
0answers
33 views
Is it possible that a method inside a module (in kernel mode) be preempted?
My basic question is about system stack of a thread, and system stack of a process
Two methods in a module?
Which of the methods can be preempted via kernel mode preemption,
the one in process ...