pthreads – Some useful links and solution for maximum thread number

by

Manual Reference Pages (including a list of functions that are not thread-safe)

Tutorial on pthreads

And if you wonder why you cannot create more than X threads on your system (for me this was always 382), this forum provides a solution.

Basically, the problem is that each thread created will occupy space for its stack. On my system, the default thread stack size is 8MB. Therefore, after 382, I simply run out of space.

Solution: Change the stack size to a smaller value, unless you really need 8MB.

pthread_attr_t tattr;
size_t size;
size = PTHREAD_STACK_MIN + WHAT_ELSE_YOU_NEED;
pthread_attr_init(&tattr);
pthread_attr_setstacksize(&tattr, size);

Another interesting page on pthreads is this.

Advertisements

Tags: , , ,

6 Responses to “pthreads – Some useful links and solution for maximum thread number”

  1. bledAddinna Says:

    juwst quick hello

  2. grieldigh Says:

    Hey
    I have powermta nulled for sale.
    Good price. I provide full support , installation

    em. triggermailing @ gmail.com

  3. james Says:

    Hi

    we have PowerMta Video tutorial in this we cover these topics

    The topics which we covered in this video tutorial
    • Introduction of Power MTA
    • Installing PowerMTA
    • License Activation
    • Installing and configuring DNS
    • Features of PowerMTA
    • Configuring Virtual-MTA
    • Max-message-rate
    • Max-message-per-connection
    • Define bounce after
    • Define Retry Domain on particular time period
    • Giving access on web for monitoring purpose
    • Define HTTP management Port
    • Configure SMTP username and password
    • Configure SMTP port
    • Increase PowerMTA queues
    • Reload PowerMTA configuration file
    • How to debug PowerMTA
    • Generate SPF and DKIM
    • Publish SPF and DKIM on DNS
    • Define DKIM on PowerMTA
    • How to connect Interspire applications or other application
    • Start, Pause and delete queue on PowerMTA
    • Delete particular queue on PowerMTA
    • Checking powerMTA log
    • How to check IP and Domain blacklist
    • Delist your IP And domain

    for more info mail me: smshesms@gmail.com

  4. santu Says:

    Setup Builk email with powerMTA and multiple IP Address
    Contcat : san2roy@gmail.com
    Skype : san2roy

  5. santu Says:

    We are providing bulk email solution
    Cheap Dedicated server with multiple IP Address
    PowerMTA email Server and Interspire Email marketer
    Contact Us
    Skype ID : san2roy
    Gtalk ID : san2roy
    Email : san2roy @ gmail .com

  6. Dweezil Says:

    That’s a smart answer to a tricky qusoiten

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: