maximum number of threads running in a pc [closed] - multithreading

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can I determine the maximum number of threads running in my pc or different pc in my current network? does it depend on only hardware or something else..plz give me some reference link and suggestion
thanks in advance ..

Please be more specific:
1.If you want to know the maximum number of concurrently executing threads on the hardware, there are various APIs for different languages:
C# - Environment.ProcessorCount.
Java - Runtime.availableProcessors().
C - Win32 - GetSystemInfo.
C - Linux - sysconf.
This practically gives you the number of logical CPU cores that your system has (including intel HT "cores").
2.If you want the maximum number of threads you can start from an application: there is no limit, except for how much memory you have and how many threads the OS can handle before it locks up. :)

Related

Find out how much cpu time, memory and I/O time are being consumed by JBoss? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
i'm using CentOs Linux.anybody please tell me how to find the CPU time,Memory and I/O time being consumed by JBoss.
As Jayaram Pai pointed out, top is a cool tool for cpu, memory usage in real time. You can find the man page from http://manpages.ubuntu.com/manpages/lucid/man1/top.1.html. Besides top command, dstat also reports the real time usage of cpu, memory, network and disk. Pretty awesome one. Check out man page from http://manpages.ubuntu.com/manpages/karmic/man1/dstat.1.html.
Note: dstat reports the whole system resource usage overview real time. If one process, top and iotop will get the job done. You may need to install iotop manually for you linux distribution.
Use top command or a more colourful version Htop.

Accelerate software running in linux [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need to test a software stability for one month under linux. Obviously, one month is too long . I am wondering, is there a tool that can accelerate this process, like if using this tool for 30 hours just like running this machine for one month (30 days)? Please be notice this tool should support linux. Thanks any reply in advance.
Li
The way to do this kind of testing is to estimate the workload, and to increase it.
Eg, heat and cool the system in extreme conditions, perhaps use a wind tunnel, or a heat source, whatever is needed to simulate "one month" of use.
On a more serious note, what kind of load are you expecting? Eg, will you have a person sit and use the program each day, and therefore need to worry about changing dates while the application is still in use?
Or will you expect 50,000 customers over the span of one month?

i want to find out how many threads maximum use in dual core using C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am using C#. I want to write the program using thread concept. I just to know maximum how many threads can run in dual core using C#. I attach my partial code:
Thread t1 = new Thread(threadJobA);
Thread t2 = new Thread(threadJobB);
t1.Start();
t2.Start();
You can use the Environment.ProcessorCount to find out how many cores there are in the machine.
However, that doesn't limit the number of threads that you can start, that only tells you how many of the threads can run at the same time. In some situations there may be useful to start more threads than that, in some sitations less. It all depends on what the threads are supposed to be doing.

How many background workers can I use? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How many background workers can I use? Threads? etc.
Tha maximum number of threads you can create is only bounded by the resources that you have.
This could be the question asked in:
Maximum number of threads per
process in Linux?
What's the maximum number of threads
in Windows Server 2003?
Depends on your hardware/software configuration and your use cases.

Multicores and mulithreads [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
If a software devoloped with multi threading , Is it true that multicore processor executes that software efficiently by using software threads of operating system i.e when i create multiple threads in java those threads are exicuted simultineously by multicore processor by linking these java threads with software threads of OS ?
It varies with the JVM implementation and OS, but when coding you should take a defensive position and assume that multiple threads will be active at the same time.
Pragmactically, you will see good use of multiple cores on many major platforms. There's quite a bit of cleverness in commerical JVMs now to do garbage collection so as to reduce the impact of that on muti-core platforms.

Resources