LinuxQuestions.org
Visit Jeremy's Blog.
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 10-06-2000, 06:47 PM   #1
man9
LQ Newbie
 
Registered: Oct 2000
Posts: 2

Rep: Reputation: 0
Question


Hi all,

I wonder if anyone knows how to declare two threads in linux real time programming?! My goal is to define 2 theads, one is for incrementing the clock cycle and the other one is to print out a letter in each cycle.

man9
 
Old 10-07-2000, 10:21 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
It depends on what threads you are running. Most distro's now ship with LinuxThreads, but if you have RT Linux it may be different. Here is a great source of info for threads - http://pauillac.inria.fr/~xleroy/linuxthreads/
 
Old 10-07-2000, 11:59 AM   #3
man9
LQ Newbie
 
Registered: Oct 2000
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks :)

Thanks
Actually I don't have any experience in real time application and now trying to do one in linux platform. So, if there's any good online tutorial regard on thread or socket, please forward the url to me.

thnaks again

man9


Quote:
Originally posted by jeremy
It depends on what threads you are running. Most distro's now ship with LinuxThreads, but if you have RT Linux it may be different. Here is a great source of info for threads - http://pauillac.inria.fr/~xleroy/linuxthreads/
 
Old 10-07-2000, 01:43 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
Here are a few URL's. BTW I believe some (most?) of the newer distro's are using pthreads (POSIX-threads) which is now part of glibc.

http://www.linuxgazette.com/issue48/dellomodarme.html
http://pauillac.inria.fr/~xleroy/linuxthreads/faq.html
http://www.math.arizona.edu/swig/pthreads/threads.html
 
  


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
how to write multiple threads working simultaneously ? indian Programming 3 09-19-2011 11:41 PM
how to list all running threads minil Programming 2 12-28-2004 10:25 PM
Running a program for a specific period of time CaptainHowdy Linux - Software 2 08-22-2004 07:02 PM
my get new threads from the forums perl program dmx9595 Programming 0 09-06-2003 11:28 AM
Running a program for a specified time Brett-NZ Linux - Newbie 4 12-08-2002 05:48 PM

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

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