Multi-threading problem

zhaozj2021-02-16  95

Topic: 100 ask for advice, not enough to open stick together :) swap problem (similar to flashget's) of between Multithreading: goodloop (small blog) Grade: credit value: 100 belongs to the community: Java J2SE / Foundation Classes problem Points: 100 Results: 9 Posted: 2004-6-12 23:21:03

A program that search according to the file in the condition hard disk .. My thoughts are to implement each thread with multiple threads to search for a disk .. But you can use a thread from the beginning to the end to search over the speed (a little bit more faster) .

But the thread that is looking out has been done, and it will be exited. No help the busy thread is busy

My current purpose is to make a thread pool, and then I haven't finished it like a thread finished in FlashGet .. Take a part to do ....

But I want to realize my brain, I have a mess, there is nothing good method :(

Dear help think about it, discuss together

Thank you all prawns ~

Reply to: Westwin () () Reputation: 100 2004-6-12 23:24:26 Score: 5 gz, study

Top Reply to: Zealvampire (Mosquito) () Reputation: 100 2004-6-12 23:46:44 Score: 20 http://javaresearch.gro.clinux.org/ JANTS - Network Ant Java Edition may be a bit helpful to you I have a good remember to speak.

Top Reply to: JavaVsNet (JavaVsnet) () Reputation: 100 2004-6-13 10:28:51 Score: 5 Support!

Top Reply to: JavaVsNet (JavaVsNet) () Reputation: 100 2004-6-13 10:33:05 Score: 30. I think, your program performance doesn't seem to be higher than the single thread because of the system IO, because The speed of IO is slower than the execution of the program, so becoming a performance bottleneck. To really solve it, I want to start from hardware and use disk arrays.

Top Reply to: Programr23 (子) () Reputation: 100 2004-6-13 16:52:42 Score: 5 Good school "now", learn, will!

Top Reply to: windylife () () Reputation: 100 2004-6-13 17:02:58 Score: 5 to understand the relationship between threads and processes

Top Reply to: Goodloop (小志) () Reputation: 100 2004-6-13 17:32:44 Score: 0 Programr23 (子) You say good school "now" ?? What do you mean ?? Tell me more Thread ?? Hehe .. Thank you .. I am watching

JavaVsNet (JavaVsNet) you are talking about .. You may have to search for the entire search process through multi-threads. The entire search process is unlikely, but you can get a few results more quickly ..

But I now seem to be more interested in this adjustment process ... Take this .. I hope to have a study or a similar thing to teach ..3Q :)

Top Reply to: Goodloop (小志) () Reputation: 100 2004-6-14 21:33:08 Score: 0 And friends have a prompt?

Introduce .. Thank you.

Top Reply: JavaVsNet (JavaVsnet) () Reputation: 100 2004-6-14 23:55:44 Score: 30 You said: "But you can get a few results more quickly." This unless it is improved the search algorithm. Otherwise, the algorithm complexity of multi-threaded and single-thread is the same, that is, there is nothing difference. The adjustment of the other thread is indeed worth studying, you have studied the content of the basic thread you will master. It's really interesting, huh, huh

转载请注明原文地址:https://www.9cbs.com/read-11268.html

New Post(0)