Solved

getting pthread to work

Posted on 1997-05-30
2
259 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMWare 6 crashing 14 99
PHP Apache application gives "Forbidden" message 5 45
Auto channel for WiFi (Access Point) 3 78
VirtualBox in Fedora 25 Linux:  Unable to Install OS 11 160
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now