The simplified version of the test looks like this:

#include <pthread.h>
#include <stdio.h>

void* tmp_thr(void *p) {
        printf("%d\n", *(int*)p);
}

int main() {
        int j;

        for(j=0;j<800000;j++) {
                pthread_t t;
                pthread_create(&t, NULL, tmp_thr, &j);
                pthread_join(t, NULL);
        }
}


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to