Using POSIX threads in C on Linux

This is a discussion on Using POSIX threads in C on Linux within the C Programming forums, part of the General Programming Boards category; Hello, I am using POSIX threads in my C program. The program reads integer values from a file to process. ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    17

    Using POSIX threads in C on Linux

    Hello,

    I am using POSIX threads in my C program. The program reads integer values from a file to process. I get a Segmentation fault (core dumped) error during execution when I have more than 6 integers in my input file. The program executes perfectly fine when I have up to 6 integers in the input file. The program seems to be failing during the pthread_join call. Has anyone come across such a situation? Any thoughts on this is greatly appreciated.

    Thanks.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,701
    Using POSIX thread in Linux

    Please don't double-post.

    gg
    Last edited by Codeplug; 01-19-2008 at 05:37 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. POSIX threads
    By Boylett in forum Linux Programming
    Replies: 2
    Last Post: 09-10-2008, 02:33 PM
  2. POSIX threads problem, probably simple fix
    By parad0x13 in forum C++ Programming
    Replies: 3
    Last Post: 07-23-2008, 09:48 PM
  3. pthreads-win32 POSIX threads
    By c99 in forum C Programming
    Replies: 4
    Last Post: 02-24-2004, 06:59 PM
  4. Is Linux Really A Programmers OS?
    By SourceCode in forum A Brief History of Cprogramming.com
    Replies: 43
    Last Post: 04-07-2003, 10:24 PM
  5. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21