Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
43 views

Thread process in linux

I'm wondering about the "punishment" that occurs when a new thread is created. From my understanding of clone(2), NPTL (New POSIX Thread Library), CFS (Completely Fair Scheduler), when a new thread ...
0
votes
0answers
21 views

Is it possible to name a QThread? [migrated]

I have a Linux Qt application that creates some QThreads. I know that when you create a thread it inherits the parent name and I can see it when I use htop or ps ax -L. Is it possible to name those ...
2
votes
0answers
25 views

API Monitoring and Hooking

I am currently reading the "Malware Analyst's Cookbook and DVD". There is a chapter "Dynamic Analysis" and there are also some recipes about hooking and monitoring API calls of process but it is for ...
0
votes
1answer
390 views

Are lock, mutex, and semaphore for between threads or between processes?

I think lock, mutex, semaphore are used for synchronized multiple (threads or processes?) to access something simultaneously. Must this "something" be some shared memory between multiple (threads or ...
0
votes
1answer
70 views

Emacs windows, frames, server and clients: threads or processes?

From http://www.gnu.org/software/emacs/tour/ Emacs server Some people like to keep only a single instance of Emacs open and edit all their files in there. Doing this has a few advantages: ...
1
vote
1answer
135 views

Understanding the difference between pid_max, ulimit -u and thread_max

I am trying to understand the Linux processes. I have confusion on the terms pid_max, ulimit -u and thread_max. What exactly is the difference between these terms? Can someone clarify me the ...
5
votes
5answers
2k views

Threads vs (Forked) Processes

Linux applications generally fork then exec (with execve() ), but Java applications, and certain Apache MPMs use threading. If forking, uses the fork + exec to spawn a process, what is the high level ...
3
votes
1answer
226 views

Increasing nproc limit for a non-root user . Only effective by restart

I am increasing nproc limit for one of a development user account in my rhel6 system . After searching some rubust solution , I zerod at editing /etc/security/limits.conf with these two lines : ...
4
votes
1answer
371 views

What information can I find out about an eventpoll on a running thread?

Following on from a problem described in "How is it that I can attach strace to a process that isn't in the output of ps?" I'm trying to debug a process that hangs part way through. By using ...
1
vote
0answers
258 views

What exactly is the lwp and threads in solaris?

The book "Solaris Internals" says Solaris executes kernel threads for kernel-related tasks, such as interrupt handling, memory page management, device drivers, etc. For user-process execution, kernel ...
1
vote
3answers
460 views

Viewing virtual memory usage

I started 700+ threads from a single program And my /proc/[PID]/status file shows the following output. VmPeak: 7228104 kB VmSize: 7228104 kB VmLck: 0 kB VmHWM: 3456 kB VmRSS: ...
1
vote
1answer
244 views

Thread id on different linux distros

We have a server application which runs fine on ubuntu and the old Mandrake linux, but it consistently fails on Redhat Enterprise Linux (to be precise RHEL 4 Update 8, kernel 2.6.9-89). On RHEL the ...
1
vote
3answers
677 views

how does built in commands of a shell implemented in Linux? as a function or thread of shell process?

I know that external commands are run in the shell by creating a separate process. But what exactly happens when a built in command is run in a shell. Are they executed as a function or if the shell ...
1
vote
1answer
294 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], ...
2
votes
1answer
251 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, ...
0
votes
0answers
36 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 ...
1
vote
1answer
4k 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
691 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 ...
1
vote
1answer
975 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 ...
2
votes
2answers
875 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 ...
0
votes
2answers
820 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: ...
6
votes
2answers
745 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 ...
0
votes
2answers
997 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
0answers
38 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 ...
0
votes
1answer
89 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 ...
1
vote
1answer
315 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 ...