The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Threads and Threads Count ? varungupta UNIX for Advanced & Expert Users 2 03-21-2008 09:23 PM
threads vijlak SUN Solaris 3 01-29-2007 07:55 PM
threads Gerry405 UNIX for Dummies Questions & Answers 2 06-29-2005 04:30 AM
old threads norsk hedensk Post Here to Contact Site Administrators and Moderators 2 06-03-2003 06:16 PM
nfs threads i2admin UNIX for Advanced & Expert Users 1 03-06-2003 11:28 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-16-2007
the_learner the_learner is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 75
How many threads do I use ?

Hi,

I have a program that has two types of threads:

1) Reader threads
2) Worker Threads

Readers: Their only job is to read files. They just read data from the files and put them into a buffer. They are obviously I/O intensive.

Workers: These are CPU intensive. They do some computation on the data which has been put into these buffers.

How many threads:

1) Worker: I think this answer is obvious. The number of worker threads should be equal to the number of CPUs in the sytem.

2) Reader: What about these? How can I determine the capability of I/O system ?

Specifically, I want the user to be able to specify the number of Reader and Worker threads the would like the program to use.

QUESTION: What guidelines should the user follow or use to determing this number ? How can they determine the capabilities of the I/O subsystem?

(The program uses 1 reader and 4 worker threads by default)
 

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0