Solved

getting pthread to work

Posted on 1997-05-30
2
265 Views
Last Modified: 2013-12-15
I'm having trouble getting C/C++ programs using the pthread
libraries to work.  I notice that most of the definitions
in the various /usr/include/pthread/mit/*.h files are within
#if defined(PTHREAD_KERENEL) / #endif
Since those are the definitions I need and they aren't
working I obviously don't have the 'PTHREAD_KERNEL'.
I have Slackware Linux 3.1, with kernel version 2.0.27.
How do I get the kernel set up so I can use the pthread
library?  (I didn't see an option in the make config :(  )
0
Comment
Question by:gunder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
bencur earned 100 total points
ID: 1627725
thread support is always compiled with the kernel,
it's a clone syscall, and there's no option in make config.

you probably should tell us what your compiler does,
what errors you get, and show us example of your code.
0
 

Author Comment

by:gunder
ID: 1627726
First off, sorry it took so long to get back to you.  had a bad couple of weeks.

I see that your answer is correct and that I probably need to play with some things before I could post some specific questions about threaded programming under linux.  :)
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question