Questions tagged [threads]

Thread is a form of a process to divide itself into two or more tasks that can be executed concurrently.

146 questions
42
votes
2 answers

How do priorities work on task-manager and when should/n't I set this?

I've been setting some processes priority in order to see what it actually happens, but, guess what... Nothing; it all runs the same way... I found on Google that priorities are not really linked with processing speed, is that true? Why not then? if…
Pablito
  • 574
  • 1
  • 5
  • 13
28
votes
7 answers

What's the best way to perform a parallel copy on Unix?

I routinely have to copy the contents of a folder on a network file system to my local computer. There are many files (1000s) on the remote folder that are all relatively small but due to network overhead a regular copy cp remote_folder/*…
dsg
  • 1,169
  • 2
  • 17
  • 25
25
votes
4 answers

what does 2 core 4 threads mean in cpu?

I wanted to know what does 2 cores 4 threads mean about a cpu? I am talking about this cpu which i have http://ark.intel.com/products/47341/Intel-Core-i5-520M-Processor-3M-Cache-2_40-GHz I initially thought i5 had 4 cores but i think i am wrong. My…
user734861
  • 375
  • 1
  • 3
  • 6
22
votes
0 answers

Jenkins realtime console output for parallel threaded fabric command

We have a Python fabric command that runs in parallel across several hosts, something like this: $ fab --hosts=prod1.server,prod2.server,prod3.server --parallel copy_cache This will copy cache to the production servers listed in parallel. There is…
mVChr
  • 405
  • 3
  • 9
21
votes
3 answers

Task Manager is saying the system is running with over a thousand threads

I opened up Task Manager and looked under the "System" area and saw: Threads: 1337 Since I have a dual-core processor with hyper-threading available (meaning four threads), how is it possible to have 1000+ threads when my processor is only…
dpl47
  • 329
  • 1
  • 3
  • 8
19
votes
2 answers

How can you get thread count of running process in Windows 7?

I have a multi threaded C# application and I want to see active threads of that process while running. Where can I see it?
Furkan Gözükara
  • 683
  • 5
  • 10
  • 23
14
votes
1 answer

Difference between normal and watched threads

AFAICS, If I ignore a thread, current and further messages in it are automatically marked as read. For a message in a normal thread, no action is taken - i.e. upon a new message arrival, I get a notification (which won't go away until I read…
ivan_pozdeev
  • 1,897
  • 18
  • 34
13
votes
1 answer

What is a user thread and a kernel thread?

I know what a thread is, and I know how they work, but I'm quite confused as to what a user thread and a kernel thread are in terms of what they are allowed to do. Can you please clarify what a user thread can do and what a kernel thread can do?
A User
  • 694
  • 3
  • 11
  • 25
12
votes
2 answers

Does GNU/Linux counts processes and threads together when I limit their number?

I want to limit the number of processes per user on my machine, with /etc/security/limits.conf and the nproc value. I have read here that Linux dosen't distinguish between processes and threads? My current nproc limit per user is 1024, but if this…
Peter Weber
  • 257
  • 1
  • 3
  • 11
10
votes
3 answers

Can a multi-core processor run multiple processes at the same time?

I understand that a multi-core processor can run multiple threads of the same process at the same time using its different cores. Can it also run multiple processes at the same time(each core running a different process)?
NimsDotNet
  • 349
  • 1
  • 3
  • 11
8
votes
2 answers

What does Outlook need to recognize a thread?

I have a piece of software that is sending multiple e-mails. The first one has the header Message-ID: <[email protected]> The second and all following ones have the headers In-Reply-To:…
Vampire
  • 273
  • 3
  • 10
7
votes
1 answer

Why are user level threads faster than kernel level threads?

I found out that user level threads are a lot faster than kernel level threads but I could not find any convincing example of WHY is user level threads are faster than kernel level threads ? Could someone explain that to me. The kernel-level…
vikkyhacks
  • 317
  • 1
  • 4
  • 9
6
votes
3 answers

Command-line Number of thread per process on MacOS

I'd like to be able to get the number of thread per process in command-line and get the exact same number I can see via the Activity Monitor. At the moment the IntelliJ IDEA process (PID 5235) has 266 Thread. I'd like to get this number but via a…
TheEwook
  • 178
  • 1
  • 1
  • 5
6
votes
2 answers

Which logical CPU (core) belongs to which socket?

I need to test performance of a multithreaded program on 1 CPU, but I have a dual CPU machine. I need to set affinity to those logical CPU's, that share their socket, oterwise they strongly benefit from larger number of FSB's. I tried affinity 0-7…
6
votes
2 answers

Unexpected shutdown with heavy single threaded process and single core affinity

I'm not sure what's the cause of the problem, but it happened 3 times in two weeks under similar conditions. I checked with the laptop's support desk and they made me run several tests to see if my machine was overheating but there aren't any signs…
JBernardo
  • 184
  • 1
  • 8
1
2 3
9 10