2013年10月1日星期二

Seek expert coaching a "Java 's Worldview" ...

Master, hello :
If so .. do SWing
I'm doing " a JFrame window advertising information ," is written in a JFram class code ...
If I click on the "JFrame in an ad link ," then ...
At this point in time, is likely in the brother I wrote this IM tool , a " friend of a number of news" batch arrival ...
this scene from the code to run in the background to analyze:
" user clicks on my JFrame": My JFrame class running.
" user information batch arrival " : My IM is edt thread running .
During our chat in the process, often see are:
We clicked Tencent's "a certain mini advertising links on the home page " after , this action is with the whole "edt window message may arrive batch " are:
completely independent.
brother I think :
Here " background effect " , should require JFrame window and the "File Transfer Function " window, are:
needs exactly the same " multi-threaded design" ...
But why are there :
entire system , "File Transfer function" , the need for treatment of Thread .
But JFrame window , this approach would not be treated ...
this phenomenon, whether :
processors allocated to each process focus are:
In each " single-threaded process" for each "corresponds to the class file is executed " a " top-down" , " left to right " , followed by scanning each one code execution , this " background theory" conflicting ... it ... ?
above "click JFrame Window" and "edt threads at the same time constantly swarmed to the message ," and , edt thread without a " multi-threaded Java processing " phenomenon, how should I use " multi-threaded theory to explain " ... ?
want to get detailed answers master as possible ...
wait master coaching ! !
hundred points offer ! !
a perfect running day and night to build toward the dreamer
at 2:39 on September 30, 2013

------ Solution ------------------ --------------------------

I just want to be able to know:
Why do the Swing toolkit , when , edt thread " must occupy a thread " , transfer files thread " also needs to occupy a thread " ..
But JFrame window , but do not have a " multi-threaded Java code to handle " ... ?
multi-threaded applications mainly for the user ( other program modules , other threads , other processes , I / O devices , the macro point that also includes persons) , in order to provide these users is relatively a fair and relatively timely service , remember a relative . As you eat fast food , to other dishes , you will always keep asking , hurry hurry , my food came not , the boss will say , quickly , and immediately came. This is called a " response " mechanism , but in fact , the boss is only one cook. So is a multi-threaded application-oriented technologies. For a computer , his handling instruction for each thread , to him all the same. Like chef in the kitchen , doing dishes is always a one , no matter who he dishes .
EDT thread is an event dispatch thread , EDT thread as a courier , JFrame like a house or mailbox , he is only responsible for the letter sent to each person's house or mailbox , he can not wait for everyone to have read the letter , sending the next one . As for the content of the letter ( how to deal with this notice ) , in respect of each head of household own thing , nothing to do with the courier . It is also a response mechanism .

And if from " " processor polls each task "approach to the implementation of " perspective for understanding the words ...
Here, " the thread " design a necessary condition , is not it :
need for " at the same time point" to calculate it ... ?
CPU for "multi- threaded program " when the CPU scheduling itself for the " multi-threaded program ," to be " polling " approach to deal with ...
If the " same point in time ," The real truth is :
threads, processes are carried out "CPU polling process ," then ...
So , the " multi-thread design of necessity" , is not it will " not so necessary " .... ?
has been said above , multi-threaded design is similar to the relative fair for the quick response . Theoretically one thread to handle the number of effective instruction is certainly the biggest , because the thread scheduling less work . But in fact not the case , if a thread has been long-term occupation threads, it is unreasonable , as it is a privileged community , someone needs privileges , such as the priority of processes , system processes generally require a higher priority , which is a management concept. As always planes flying leadership meeting , you always train trip bus ( which somewhat what the Han ...... just examples ) . And technically , since the CPU speed is fast enough , for example, every 0.001 milliseconds , send a picture to you , you feel that he has been sent to your pictures , so you can watch the video. According to the CPU's ability, he can give another person made ​​the same number of pictures , so that the computer can play multiple video , and if the CPU has enough capacity to send data to the speaker , so there has been a sound , which is called a simple multimedia .
: I use threads can also be " problem solving ", with the process can also be .... ?

threads and processes from the technical point of view you understand , this CPU sharing ways that are possible. only one schedule includes several threads . This is a kind of computer ablaze as a " management " concept. A process represents one aspect of the business process , and the thread on behalf of the business in the specific module , similar to the concept.

So, support the entire Java designers "a certain process or thread using function " and " determine the conditions ," What ... ?
generally a Java Web application , is a Java virtual machine , usually a process. You asked this question a little read

Here " software engineering Java language for threads and processes determine the true construction of the selection criteria ," What ... ?

do not know where is the problem , I feel like what software engineering test it.

hope to get a reply as soon as possible .. master
hundred points offer ! !
a perfect running day and night to build toward the dreamer
2013年9月30日早晨2点53
------ Solution ---- ----------------------------------------
a date night night dream running toward the ideal person


------ Solution - -------------------------------------------
read it twice still do not understand , do not know the language of my poor , poor or your language .
------ Solution ---------------------------------------- ----
questioning approach has serious problem , anyway, do not understand what you're talking
------ For reference only --------------------------- ------------
I just want to be able to know:
Why do the Swing toolkit , when , edt thread " must occupy a thread " , transfer files thread " also needs to occupy a thread " ..
But JFrame window , but do not have a " multi-threaded Java code to handle " ... ?
And if from " " processor polls each task "approach to the implementation of " perspective for understanding the words ...
Here, " the thread " design a necessary condition , is not it :
need for " at the same time point" to calculate it ... ?
CPU for "multi- threaded program " when the CPU scheduling itself for the " multi-threaded program ," to be " polling " approach to deal with ...
If the " same point in time ," The real truth is :
threads, processes are carried out "CPU polling process ," then ...
So , the " multi-thread design of necessity" , is not it will " not so necessary " .... ?
: I use threads can also be " problem solving ", with the process can also be .... ?
So, support the entire Java designers "a certain process or thread using function " and " determine the conditions ," What ... ?
Here " software engineering Java language for threads and processes determine the true construction of the selection criteria ," What ... ?
hope to get a reply as soon as possible .. master
hundred points offer ! !
a perfect running day and night to build toward the dreamer
at 2:53 on September 30, 2013
------ For reference only - --------------------------------------
 wait for the master. . . . . . . . . . . . . .
------ For reference only -------------------------------------- -
low hand dare coaching . .
------ For reference only -------------------------------------- -
summarize: multithreading is a technique for the fast- response applications . The emergence of multi-threaded efficiency is not to let the computer faster , but to let the computer calculations to better meet multitasking , fast response and yet the computer high efficiency of the basic application requirements.

further enhance the look, is to let the computer's features to better meet human needs and promote social scientific and technological progress. This is the essence of technology . nuclear weapons except ~
------ For reference only ------------------------------- --------
seems to say is to ask in the event handler inside jframe Why not multi- threaded processing . If you are in a need for a button event in the action takes a long time , then , need to multi-threaded processing , otherwise your main thread is stuck, you can try, directly in the button event inside sleep ( 10000 ) ; try it, you are stuck in the entire form .
------ For reference only -------------------------------------- -
to do with Java Swing UI are forced. . .
------ For reference only -------------------------------------- -
worldview. . . . FML dares to answer
------ For reference only ----------------------------- ----------
+1111111111111
------ For reference only ----------------------- ----------------
oO Oo temps brother, thank you for your coaching ! !
brother I will not let your hard work , receive 10 times of ordinary people ! !
80 points to you very much ..

rumlee, hope you must not update your avatar ...
your tone , and your avatar is the " Human Cloning" ! ! But thank you for your coaching text.

Greek heads brother yesterday, you may not have a good rest ..
no relationship , brother I will give you very much .. 18 points
Who told you to help my brother so many times it ... ?

zqfddqr, your avatar , I borrowed ..


没有评论:

发表评论