I will give you a real life example of the need for multithreading.

project to monitor status of computers on a network. this is done with a
ping to each system from a timer. the result is either online or offline
depending on ping results. The program is unresponsive to the user while
multiple pings are done in the background. multithreading would allow the
program to be responsive to users while other computer status is checked in
another thread. furthermore if for some reason a person had 100 systems to
monitor on the network, this will take time if many are in offline status
leaving the program unresponsive to users for quite some time. creating 100
threads each pinging only one system then terminating after returning the
result would make it even faster as all pings are done simultaneously. 

So there is but one real world application for multithreading. not to
mention it would make gambas immensely more powerful.



--
Sent from: http://gambas.8142.n7.nabble.com/gambas-user-f3.html

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to