Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile question Pin
Tomasz Sowinski26-Sep-02 4:08
Tomasz Sowinski26-Sep-02 4:08 
GeneralThanks for that handy tip! Pin
ns26-Sep-02 4:18
ns26-Sep-02 4:18 
GeneralQuestion about COM Monikers and the ROT Pin
[James Pullicino]26-Sep-02 3:39
[James Pullicino]26-Sep-02 3:39 
GeneralRe: Question about COM Monikers and the ROT Pin
jmkhael26-Sep-02 4:54
jmkhael26-Sep-02 4:54 
GeneralThreads in Windows 2000 Pin
Anonymous26-Sep-02 3:15
Anonymous26-Sep-02 3:15 
GeneralRe: Threads in Windows 2000 Pin
Tomasz Sowinski26-Sep-02 3:22
Tomasz Sowinski26-Sep-02 3:22 
GeneralRe: Threads in Windows 2000 Pin
Andreas Saurwein26-Sep-02 3:19
Andreas Saurwein26-Sep-02 3:19 
GeneralRe: Threads in Windows 2000 Pin
Mike Nordell26-Sep-02 11:49
Mike Nordell26-Sep-02 11:49 
It seems like a suboptimal design, but besides that you can have >1000 threads/process.

Every thread have a default stack of 1MB reserved address space. If this was the only limiting factor, you could have 2048 threads in a "normal" 2GB user-address-space system, or 3072 threads in a 3GB user-address-space system (please search MSDN for explanations of the 3GB system).

Then every thread (IIRC) uses two pages (i.e. 8KB) just to be started, committing 8MB of memory and...

Why don't you just write a test-app and see how many threads you can start for yourself?

GeneralRe: Threads in Windows 2000 Pin
Anonymous26-Sep-02 4:45
Anonymous26-Sep-02 4:45 
GeneralRe: Threads in Windows 2000 Pin
Todd Smith26-Sep-02 11:19
Todd Smith26-Sep-02 11:19 
GeneralDialog Box Pin
Lucky200226-Sep-02 3:01
Lucky200226-Sep-02 3:01 
GeneralRe: Dialog Box Pin
Roman Fadeyev26-Sep-02 3:09
Roman Fadeyev26-Sep-02 3:09 
GeneralRe: Dialog Box Pin
Lucky200226-Sep-02 3:11
Lucky200226-Sep-02 3:11 
GeneralRe: Dialog Box Pin
Roman Fadeyev26-Sep-02 3:26
Roman Fadeyev26-Sep-02 3:26 
GeneralRe: Dialog Box Pin
Tomasz Sowinski26-Sep-02 3:25
Tomasz Sowinski26-Sep-02 3:25 
GeneralRe: Dialog Box Pin
Lucky200226-Sep-02 3:25
Lucky200226-Sep-02 3:25 
GeneralRe: Dialog Box Pin
Tomasz Sowinski26-Sep-02 3:32
Tomasz Sowinski26-Sep-02 3:32 
GeneralRe: Dialog Box Pin
Lucky200226-Sep-02 4:01
Lucky200226-Sep-02 4:01 
GeneralRe: Dialog Box Pin
Tomasz Sowinski26-Sep-02 4:19
Tomasz Sowinski26-Sep-02 4:19 
GeneralRe: Dialog Box Pin
Lucky200226-Sep-02 4:10
Lucky200226-Sep-02 4:10 
GeneralRe: Dialog Box Pin
Tomasz Sowinski26-Sep-02 4:23
Tomasz Sowinski26-Sep-02 4:23 
GeneralRe: Dialog Box Pin
Lucky200226-Sep-02 4:26
Lucky200226-Sep-02 4:26 
GeneralRe: Dialog Box Pin
Nitron26-Sep-02 3:42
Nitron26-Sep-02 3:42 
QuestionIs that a focus problem? Pin
chen26-Sep-02 2:58
chen26-Sep-02 2:58 
Questionhow to build a multilingual application? Pin
Rene De La Garza26-Sep-02 2:57
Rene De La Garza26-Sep-02 2:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.