Questions tagged [thread]
The thread tag has no summary.
125 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
57
views
Do linux kernel threads run in process context?
I'm aware of Linux softirqs may run within specific per-cpu kernel thread context -- ksoftirqd/[cpu_id].
Kernel threads are similar to user-space threads, however they only execute kernel code in ...
0
votes
2
answers
97
views
Troj/PHPShel-CE and PHP/Agent-BJNA trojan
I'm currently dealing with a real threat: the trojans Troj/PHPShel-CE and PHP/Agent-BJNA showed up on my system. I've decided to move to another provider – the first server IP was already blacklisted, ...
2
votes
1
answer
171
views
What is a parked thread in Linux kernel?
What is a parked thread in the context of Linux kernel? I mean a thread that is in TASK_PARKED state?
How this state differs from TASK_INTERRUPTIBLE and TASK_UNINTERRUPTIBLE?
From which state a thread ...
1
vote
1
answer
77
views
Hit a strange signal settings of a kernel thread in Linux
I am working on an embedded Linux system (kernel-5.10.24), and using busybox as init.
Now I hit a strange problem about signal settings of a kernel thread in system.
The kernel thread is from a device ...
1
vote
1
answer
259
views
Why can't Linux provide lighter/green threads?
I often hear that linux threads are heavy (requiring 8mb stack size) and this is why languages like golang implement their own green threads in userspace (allocating to the heap). This then allows ...
4
votes
2
answers
3k
views
Are there any benefits in setting a HDD's logical sector size to 4Kn?
Modern HDDs all are "Advanced Format" ones, e.g. by default they report a logical/physical sector size of 512/4096.
By default, most Linux formatting tools use a block size of 4096 bytes (at ...
0
votes
1
answer
106
views
why ulimit restriction is affect by other processes?
I have some processes creating large amount of threads (using python ray module), like 32 (proc) * 120 (thread per proc).
Then I found other processes would fail on creating threads while their nTH is ...
2
votes
1
answer
559
views
How can I locate the stacks of child tasks (threads) using /proc/<pid>/maps?
PURPOSE:
I am theorising as to how one would go about creating a pointer scanner in a Linux environment.
DISCLAIMER:
My findings have been tested on Debian Bookworm (current stable) and a Gentoo ...
3
votes
1
answer
1k
views
Why does Linux needs both pid_max and threads-max?
I understand the difference between /proc/sys/kernel/pid_max and /proc/sys/kernel/threads-max. There's a good explanation at the answer to
Understanding the differences between pid_max, ulimit -u and ...
1
vote
1
answer
367
views
Does the definition of a thread in Linux depend on a system call?
Clone
In the manual page for clone()/clone3() system call I find:
CLONE_THREAD (since Linux 2.4.0).
If CLONE_THREAD is set, the child is placed in the same thread group as the calling process.
To ...
0
votes
2
answers
429
views
How to find PID of all processes related to a given process?
How can I go about finding the PID or other information about a process that is doing the work of another process? I'm talking about kworker threads, for example, or any other threads/processes that ...
-2
votes
2
answers
7k
views
Difference between cores and logical processors
I have a question about core and logical processors. So, my computer has 1 CPU with 2 cores and 4 logical processors. Does this mean that my computer has 4 threads, 2 threads for every core? Than why ...
3
votes
1
answer
905
views
How do you fetch a large file over http in parallel?
Question:
Since HTTP supports resuming at an offset, are there any tools (or existing options for commands like wget or curl) that will launch multiple threads to fetch the file in parallel with ...
3
votes
0
answers
649
views
nvidia (proprietary) drivers : What are these kernel threads?
Running some 340 driver (with an nvidia.ko module loaded at init time) I moved to a 470 driver and discover half a dozen of kernel threads I failed to find any information about :
2 [nv_queue] : What ...
0
votes
1
answer
419
views
History process
Is there a command line to retrieve all information like pid tid of threads in Linux? For instance if one process has dead before the command ps runs. The command does not find the process