Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

How many processes per processor

Hi ,
I have a customer who is asking

How many concurrent processes can you run on a single quad?
-         How much memory can be allocated to each process?
We are using Intel Processors.

Any input would be appreciated.
0
c_hockland
Asked:
c_hockland
2 Solutions
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
A processor core can only handle one task at a time.  With Hyperthreading, it can basically do two at a time.  But a preemptive multitasking operating system (which all x86/x64 OSs are these days as far as I know) will schedule time for each process on each processor core.

I'd suggest reviewing the comments and links here:
http://superuser.com/questions/168114/how-much-memory-can-a-64bit-machine-address-at-a-time
0
 
Duncan RoeSoftware DeveloperCommented:
With a quad, you can certainly have 4 threads actually executing concurrently. That's why it's important to use proper locking mechanisms between threads in a process - otherwise a variable being used by one thread could literally change in value between instructions in that thread because of the actions of another thread running in a different core.
There is a limit to how many processes a kernel can support: it is given by
08:30:23$ cat /proc/sys/kernel/pid_max 
32768
08:31:49$ 

Open in new window

I.e. on my 32-bit system it is 32768. Multiple threads actually consume 1 pid each, but this is hidden (unless you have a very old system).
This limit is independent of the number of cores.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now