LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2003, 03:46 AM   #1
fr0ggeh
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE 8.2 Professional
Posts: 24

Rep: Reputation: 15
pthreads


how can i enable "pthreads" in SuSE 8.2?

tia
 
Old 07-17-2003, 08:15 AM   #2
fr0ggeh
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE 8.2 Professional
Posts: 24

Original Poster
Rep: Reputation: 15
bump.
 
Old 07-17-2003, 08:58 AM   #3
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
For threads to actually work you need SMP (symmetric multi-processing support) enabled in your kernel. Oh, not to forget, multiple processors !

What are you trying to do exactly ?
 
Old 07-17-2003, 12:56 PM   #4
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
Quote:
Originally posted by Pres
For threads to actually work you need SMP (symmetric multi-processing support) enabled in your kernel. Oh, not to forget, multiple processors !
You're confusing parallelism (things occurring simultaneously) with concurrency (things appearing to occur simultaneously through interleaving of operations).

Threads offer concurrency on a uniprocessor machine, and some combination of parallelism and concurrency on a multiprocessor machine.

You don't need SMP for threads to work.

Lyle
 
Old 07-17-2003, 10:41 PM   #5
fr0ggeh
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE 8.2 Professional
Posts: 24

Original Poster
Rep: Reputation: 15
yeah, i don't think it's as complicated as pres might be thinking; i'm trying to run several games and apps using transgamings latest version of winex 3.1, and it give me this "error" everytime i start a game/app

"moo@linux:~> winex3
Your system requires the use of pthreads but the maximum system allowed stack size of 2052 kB may be too small for some games
usage: winex3 [-bigexe] [-use-pthreads <yes/no>] [[-]-winver <version>] [[-]-debugmsg <debug>] [[-]-version] [[-]use-dos-cwd <dir>] <application> [application parameters]"

if i could increase the stack size or enable pthreads, i'm sure this would help the bugginess and crashes i experience while running things under winex.

tia.
 
Old 07-17-2003, 11:49 PM   #6
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
I've never tried winex, but I get the feeling that when it says "Your system requires the use of pthreads" it means that winex is running as if you had specifed "-use-pthreads yes".

I don't think there's a way to enable or disable pthreads on your system; it's just there or not there. I'm guessing you have it.

Run "ulimit -s unlimited" before running winex to increase your stack size. Look at "man bash" and search for ulimit for more information.

Lyle
 
Old 07-18-2003, 12:28 AM   #7
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
I just realized you probably won't be allowed to increase your stack size.

Maybe somebody else can teach us how to do this.

Lyle
 
Old 07-18-2003, 01:14 AM   #8
fr0ggeh
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE 8.2 Professional
Posts: 24

Original Poster
Rep: Reputation: 15
:/ man..... this sux.
 
Old 07-18-2003, 02:13 AM   #9
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Quote:
Originally posted by lyle_s
You're confusing parallelism (things occurring simultaneously) with concurrency (things appearing to occur simultaneously through interleaving of operations).

Threads offer concurrency on a uniprocessor machine, and some combination of parallelism and concurrency on a multiprocessor machine.

You don't need SMP for threads to work.

Lyle
Whoops ! Busted it's a fair cop.

Yes, that is true, you don't need SMP for threads to work. At the time of my original posting fr0ggeh was also on the forums, so I was hoping to pump him for some more information in real time. But he didn't reply at the time.

On a single processor the "offer" of concurrency is pretty weak, since concurrency through forking's there. Sure using threads as a lightweight "process" has certain advantages regarding allocations and sharing, but at the end of the day unless you're running a MP machine threading gets a "big whoopee". Just like you can run PVM (parallel virtual machine) software on a standalone machine - big whoopee.

I know threads will "work" on a single processor. The original question was so vague - did he want to know how to link "-lpthreads" because he was getting link errors, or something else ? I had hoped to open a dialogue, but didn't. I'm not confused by parallelism/concurrency - I am however a bit dirty on the usefulness of threading. I had a stint of programming using pthreads and I have decided that one may as well use PVM instead considering the hardware situation (glut of old boxes being thrown away, begging to be clustered for a song).

Last edited by Pres; 07-18-2003 at 02:21 AM.
 
Old 07-18-2003, 11:43 AM   #10
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
Yeah, threads may not be all that great. I used to think that they were the way to go, but then I read this: http://www.catb.org/~esr/writings/ta...mchapter.html.

Lyle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Pthreads a12ctic Linux - Software 1 06-09-2005 11:05 PM
Pthreads christheavatar Programming 4 03-05-2005 10:30 PM
pthreads ftgow Linux - Software 0 07-08-2004 04:55 AM
pthreads socket9001 Programming 2 12-29-2003 01:23 AM
pthreads h/w Programming 5 10-09-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 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