Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-10-2004, 03:25 PM   #1 (permalink)
kickerman97
Registered User
 
Join Date: Oct 2004
Posts: 9
kickerman97 is on a distinguished road
help!!!

If someone could help me, i would appreciate it. I am new to Java and need some help. I need to write a multithreaded java or pthreads program that outputs prime numbers. The user needs to run the program and enter a number on the command line. The program needs to create a seperate thread that outputs all the prime numbers less than or equal to the number that the user entered. Thanks in advance......
kickerman97 is offline   Reply With Quote
Old 10-10-2004, 05:15 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
Erm . . . could you be a little bit more specific? That's too broad for a help-forum.

Unless you've done a multi-threaded programming quite a bit in another language, I think you've gotten in over your head. But if you're determined to go through with it, I can suggest this book. There's a lot of really bad Java concurrent programming books out there, but the guy who wrote this just happens to be the lead for JSR 166, which is the spec for the concurrent utilities in Java 1.5.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 10-11-2004, 10:41 AM   #3 (permalink)
kickerman97
Registered User
 
Join Date: Oct 2004
Posts: 9
kickerman97 is on a distinguished road
thanks for the reply
kickerman97 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 01:39 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting