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
44
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
  • 594
29
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,199
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…
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
22
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
  • 339
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?
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,973
12
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
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…
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)?
10
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: <153495492389.29001.486258560116169081@server.example.com> The second and all following ones have the headers In-Reply-To:…
Vampire
  • 303
7
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
  • 188
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…
6
votes
2 answers

Can a single process be executed in two or more processors in a multiprocessor system?

I have heard that one processor can work on only one process at a time. Is this true? If so, then how can a single process be executed in more than one processors at a time? Is this even possible? Thanks in advance!
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…
1
2 3
9 10