LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2006, 10:10 AM   #1
Kosal
LQ Newbie
 
Registered: Mar 2006
Location: Chennai - India
Posts: 5

Rep: Reputation: 0
Return value of pthread_create


I have read that pthread_create function returns EAGAIN on error.
But I am getting an return value of 1 for which the corresponding error from /usr/include/asm/errno is EPERM.


May I know what exactly is happening.
Thanks.
 
Old 03-27-2006, 03:45 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
pthread_create may return EAGAIN. It's one of the possible errors. The list is: EAGAIN, EINVAL and EPERM.

EPERM is 1 also in my system, so that's the error you get. The manual says
Quote:
EPERM
The caller does not have appropriate permission to set the required scheduling parameters or scheduling policy.
So how do you try to call the function? Check the arguments. If you still can't find it, post the code.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pthread_create in C++ environment lucky6969b Programming 1 12-13-2005 12:38 AM
pthread_create... os2 Programming 4 05-26-2005 03:09 PM
pthread_create problem live_dont_exist Programming 5 04-24-2005 06:21 AM
Pthread_create rahul_kulkarni Programming 4 02-10-2005 11:48 AM
pthread_create tushar123 Programming 2 06-07-2004 08:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration