Questions tagged [threads]

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

Filter by
Sorted by
Tagged with
42 votes
2 answers
54k views

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 ...
Pablito's user avatar
  • 574
29 votes
7 answers
56k views

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 ...
dsg's user avatar
  • 1,189
25 votes
4 answers
96k views

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 ...
user734861's user avatar
22 votes
0 answers
3k views

Jenkins realtime console output for parallel threaded fabric command [closed]

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 ...
mVChr's user avatar
  • 405
21 votes
3 answers
29k views

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 ...
dpl47's user avatar
  • 329
19 votes
2 answers
54k views

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's user avatar
14 votes
1 answer
6k views

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 ...
ivan_pozdeev's user avatar
  • 1,912
13 votes
1 answer
24k views

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 ...
A User's user avatar
  • 694
12 votes
2 answers
13k views

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 ...
Peter Weber's user avatar
10 votes
3 answers
17k views

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 ...
NimsDotNet's user avatar
8 votes
2 answers
9k views

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 ...
Vampire's user avatar
  • 273
7 votes
1 answer
6k views

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 ...
vikkyhacks's user avatar
6 votes
3 answers
20k views

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 ...
TheEwook's user avatar
  • 178
6 votes
2 answers
4k views

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 ...
Vladimir F Героям слава's user avatar
6 votes
2 answers
2k views

limit priority/threads for Gradle/Android Studio builds?

When Android Studio builds my project, it easily eats up all my 8 cores. I'd like to be able to fluently browse the internet while my app is compiling. Is there a way I can set Gradle's java processes ...
quezak's user avatar
  • 233
6 votes
2 answers
333 views

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 ...
JBernardo's user avatar
  • 184
6 votes
3 answers
3k views

Can I close a firefox tab through the console?

There I was downloading a bunch of stuff from the Internet quite happily using Firefox built-in download manager when I decided to check code academy (a site that teaches you how to program in ...
karlphillip's user avatar
  • 1,021
5 votes
2 answers
18k views

What Exactly is a Threaded Web Server?

I would like to know what a threaded web server is? I have performed many searches but am unable to find anything that gives a clear explanation or definition; perhaps somebody can enlighten me.
SnookerFan's user avatar
  • 1,134
5 votes
1 answer
22k views

Maximum threads limit per process in windows 10?

I have a programs that works with threads. I want to know what is the maximum threads limit per process in windows 10 or what is the maximum threads windows 10 can handle?
Sakith B.'s user avatar
  • 153
5 votes
2 answers
10k views

Why is it quicker to switch between threads than to switch between processes and share data between them?

Why is it quicker to switch between threads than to switch between processes and share data between them? For example, in the apache web server running on ubuntu can use either the Prefork MPM (...
JohnMerlino's user avatar
5 votes
2 answers
11k views

Under linux, how do I find out if some specific thread is run with real-time priority?

I have a process (jackd) that runs several threads. One of the threads it runs should be in realtime, the others run on normal priorities. I'd like to check if it actually runs on realtime. What ...
Turion's user avatar
  • 183
5 votes
2 answers
11k views

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? ...
Vishnu Vivek's user avatar
4 votes
1 answer
6k views

Changing Windows thread sheduler timeslice

This question is about possibility of tweaking windows kernel towards real-time like oses, and ways of doing it. It is quite specific narrow topic that requires deep level of knowledge - you either ...
xakepp35's user avatar
  • 369
4 votes
1 answer
2k views

How is multiprocessing related to cores and threads?

I am interested in the Intel Xeon E5-1650 v3 and the Intel Xeon E5-2643 v3 processors. They both have 6 cores and a clock speed of ~3.5GHz. However, the specifications from CPU-world (screenshot) show ...
Borealis's user avatar
  • 235
4 votes
2 answers
14k views

Why Intel Core i3 processor with enough free RAM and low CPU usage become very slow?

In a computer with Intel Core i3 and 4GB of RAM running Windows 8.1 build 9600, in conditions I expect no have performance problems it become very very slow and it's close to freeze (or even freeze it)...
boctulus's user avatar
  • 161
4 votes
1 answer
553 views

What does the suffix letter mean in the PRI column of "ps -M pid" under MacOS/X?

When I execute this command under MacOS/X: ps -M 9358 I get this output: USER PID TT %CPU STAT PRI STIME UTIME COMMAND jaf 9358 s009 0.0 S 31T 0:00.21 0:00.32 /Users/jaf/...
Jeremy Friesner's user avatar
4 votes
1 answer
4k views

how to make Apache 2.4 work in single worker mode by default?

I'm using Apache 2.4 on my server. My scripts are using a lot of system() commands and they require to work in one process mode. When I start apache using the command: apachetctl -X (which normally ...
Marek's user avatar
  • 169
4 votes
1 answer
4k views

Does the Windows scheduler allocate equal length quanta to threads?

Is the time slice (quantum) that the Windows Kernel Dispatcher allocates to threads the same length for every thread, or does it base the size of quantum on the priority of the thread like Linux does?
user avatar
4 votes
0 answers
228 views

Console program randomly freezes

On my Windows10 laptop, I run a simple USB camera snapshot program, commandcam.exe (from https://batchloaf.wordpress.com/commandcam/), in a console .cmd script, which has one line: FOR /l %%i in (1,1,...
yong321's user avatar
  • 141
3 votes
3 answers
8k views

Windows 7 limit the number of threads that a process creates?

Do some versions of Windows 7 (32 or 64 bits) manage the number of threads that any specific process are creating? If so, is there a way to configure a maximum limit of threads on system (in the ...
Diogo's user avatar
  • 30.5k
3 votes
1 answer
7k views

Cannot edit /proc/sys/kernel/threads-max

I am currently building a stress testing tool, and as such I need a pretty massive number of threads. I already went through all settings to raise the limit, but there is one last setting, the upper ...
Anarkopsykotik's user avatar
3 votes
2 answers
24k views

How do I monitor or view the thread count of a certain process on AIX?

How do I monitor or view the thread count of a certain process on AIX?
user avatar
3 votes
3 answers
4k views

Thunderbird - watch or ignore threads

If I go to View->Threads I can select to view only watched threads, or to display ignored threads. How do I set this on a thread? I keep searching, but there just doesn't seem to be any option to ...
Šimon Tóth's user avatar
  • 1,434
2 votes
2 answers
2k views

Is there a way to "hack" windows 10 to use its entire CPU power in one task or process?

I work with applications like Blender, and, according to "Task Manager" and "Resource Monitor", windows uses less than 40% CPU (at most, with the option below) and less than 30% memory when I render a ...
Ignorante's user avatar
  • 403
2 votes
2 answers
6k views

Is it possible to merge CPU cores?

Back in the past there was something called hyperthreading where a single CPU core acted like two cores. But is it possible to merge two CPU cores to an single one to improve performance on programs ...
Delta Oscar Uniform's user avatar
2 votes
1 answer
3k views

How to get a thread count for running process in Win8?

How do I display the column that lists the thread count for the running process in the task manager in Win8? The View menu doesn't seem to have any option that would allow to add nor does right ...
haku's user avatar
  • 148
2 votes
1 answer
653 views

How do I prevent myself from accidentally specifying too many threads when compiling?

When I compile stuff I usually want to do this fast, so on my workstation I issue make -j16 And (gnu) make starts compiling with 16 cores. However when I am back on my laptop I don't have 16 cores ...
math's user avatar
  • 2,653
2 votes
2 answers
541 views

Why so few threads on a v-server?

I have a v-server with 2 cores and 4GB RAM. There are running different applications like SCM-manager and a few other small application on the system. Yesterday i tried to run one more c++ program an ...
Neodym's user avatar
  • 21
2 votes
1 answer
3k views

Launch each Windows Explorer window in a separete process

Win7 Win64. I configured Windows Explorer in Tools > Folder Options > View > Launch folder windows in a separate process. It is checked, to make sure I rebooted Windows and it was still checked. ...
Hikari's user avatar
  • 307
2 votes
3 answers
229 views

Single threaded process being executed on 2 cores

On my quad core cpu, it seems like a single thread (endless while loop) is being executed on 2 cores simultaneously. Why is this? Shouldn't a single thread be executed on one core only?
agz's user avatar
  • 8,268
2 votes
1 answer
2k views

Single-threaded program takes too low CPU?

I am using Windows 7 Professional, Intel i7 CPU. I know the i7 has Hyper-Threading and I assume this is the reason. While running a single-threaded program, I saw that it only uses 12-13% CPU in Task ...
K.Steff's user avatar
  • 145
2 votes
1 answer
1k views

Peeking inside Firefox - what's maxing out the CPU

I am having a Firefox with plenty of add-ons installed. Sometimes Firefox get stuck with high CPU usage on the pages having no Flash. I'd like to solve what's causing this in a more professional ...
Mikko Ohtamaa's user avatar
2 votes
1 answer
1k views

Is it faster to run one process that spawns N threads or to run N processes?

I need to run ~1500 jobs on my lab's server. The program I am using (blastpgp if anyone cares) is capable of running in parallel mode, the "-a" option sets how many threads it will launch. The server ...
terdon's user avatar
  • 53.4k
2 votes
1 answer
4k views

Configuring systemd to allow daemon to set RT priority

I have a daemon that calls pthread_setschedparam() to set the thread priority. On a system using systemd (OpenSuse 12.1), this fails, because sched_setscheduler() returns EPERM. From what I ...
Gene Vincent's user avatar
2 votes
2 answers
13k views

How do I kill a specific thread in Windows?

The process explorer.exe has a thread with "start address" starting with "windows.immersiveshell.serviceprovider.dll". It takes a lot of processing power. Additionally, after waking up from sleep it ...
Anixx's user avatar
  • 669
2 votes
1 answer
13k views

Force ffmpeg to use 100% of CPU

I'm using ffmpeg to extract frames from video, but the process is so slow. Looking at CPU usage I see that ffmpeg use only 50% of my CPU. I've tried also to add -threads 4, but it seems it doesn't ...
Hyperion's user avatar
  • 569
2 votes
2 answers
6k views

What does "thread" mean as related to CPUs? [duplicate]

Possible Duplicate: What are threads, and what do they do in the processor? I know a process can have multiple threads, on my Windows 7 machine each process has over 10 threads in avg. But what ...
JohnnyFromBF's user avatar
  • 4,938
2 votes
1 answer
229 views

Mail.app Bug -- Keeps Showing Messages

I'm running Mail.app on my Mac (Snow Leopard). Two GMail accounts are linked to it using POP. There is an annoying bug which causes certain messages from one of the account to show up in my Inbox. ...
user19354's user avatar
2 votes
0 answers
210 views

Excel not detecting proper amount of cores

Has anybody came across how to get excel to detect the proper amount of cores when on a high core count machine. I have a EPYC VM with 32 cores assigned, and Excel only detects 2 for some reason. When ...
dustovich's user avatar
2 votes
0 answers
438 views

Making sure that cron does not run multiple instances of the same Python script in separate threads

I have a crontab file with a job that runs a Python script every 5 minutes. The script looks into one folder, checks if there are any files that have been placed in there between last and current runs ...
Vladimir Stremoukhov's user avatar