Solved

multithreaded action from one request? experts only

Posted on 2004-03-25
2
171 Views
Last Modified: 2010-04-01
check out this book comparison price:

http://www.valuecompare.com

and enter a book and search. In 12 seconds or so, they can search about 20 bookstores. That's less than a second per bookstore.

when i do this in cold fusion, it would take me probably a minute or more.

Ok, maybe I dont know my cold fusion, but this isn't rocket science.

In CF, the requests are done sequentially down the page, i.e. i will grab amazon's price, then once im done and parsed for the price, i will go to barnes and noble, so on and so forth.

i don't know much about JSP to know if this same bit can be done any differently - namely, how can it done in 12 seconds ? is JSP just inherently faster (which i doubt, since regardless of language I'd think the most time wasted would have been establishing connection with the bookstore servers) or as I suspect some languages may be able to do, it can be programmed to do multithreaded requests, so all 20 requests or so are done simultanously?

0
Comment
Question by:zooks76
2 Comments
 
LVL 6

Assisted Solution

by:jarasa
jarasa earned 25 total points
ID: 10678997
I guess so but not really in Java but maybe done in C/C++.

Don't know about CF, you can make a Java that creates some threads to do your search but can't tell you if it will be faster, maybe just a matter of the server capacity bandwith etc...

Javier
0
 
LVL 14

Accepted Solution

by:
kennethxu earned 25 total points
ID: 10679534
>> it can be programmed to do multithreaded requests, so all 20 requests or so are done simultanously?
hmm... you can do it in java easily. I'm sure it will improved the performance. you can run 20 thread and print out the result when all of them are done.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Read about the ways of improving workplace communication.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

786 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