Welcome Guest [Log In] [Register]
Welcome to USLS Computer Science Boards. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Any Discussion Sa Threading?; Available in Visual Studio .Net 2003&Up
Topic Started: Aug 24 2006, 05:08 AM (916 Views)
vincentg
Member Avatar

Alumni Moderator
Sir Sig,

Tutal suguran mo man... I think this technology is very usefull sa mga CS at least maka balo sila ano meaning sine...

From MSDN (copy and paste)

You can write applications that are able to perform multiple tasks simultaneously. This ability, called multithreading, or free threading, is a powerful way to design components that are processor-intensive and require user input. An example of a component that might make use of multithreading would be a component that calculates payroll information. The component could process data entered into a database by a user on one thread while processor-intensive payroll calculations were performed on another. By running these processes on separate threads, users do not need to wait for the computer to complete calculations before entering additional data. In this walkthrough, you will create a simple multithreaded component that performs multiple complex calculations simultaneously.

Hopefully maka research kamu paano na sya mag work in case u got some subjects w/c uses VB or C#....

This is cool...using this to my win app... :)
Offline Profile Quote Post Goto Top
 
Shiegz
Member Avatar
"Teh" Sir Tan
Admin
Migo maybe we could add Java to implement threads kay mas familiar mga higher years with java and the software is installed in all labs :)
Offline Profile Quote Post Goto Top
 
angelpeach_12
Array
sir, what 's threads??? can we also have this in 104...andrea
Offline Profile Quote Post Goto Top
 
phlegethon
Member Avatar
Bit
threads? hilu? :tongue: that seems interesting...
Offline Profile Quote Post Goto Top
 
angelpeach_12
Array
Sorry...i mean threading... :wink: :big grin:
Offline Profile Quote Post Goto Top
 
brentchua
Member Avatar

Global Moderator-B
today's processors do use multi-threading. So from my understanding in threading it's kinda like instead of processing the whole information of a certain program it takes a small bit of it. and process another.

So when you do multi-threading. It takes small bits of more than one program and processes it. so you could now like surf the net listening to music while burning a cd in the same time! :tongue:

waiting for the masters answer.... :lol:
Offline Profile Quote Post Goto Top
 
angelpeach_12
Array
WOW!!! :big grin:...really???pwede mo na sya mahimo???
Offline Profile Quote Post Goto Top
 
brentchua
Member Avatar

Global Moderator-B
of course...hehe.... but im noob at this threading stuff... so ask master Shiegz...haha :lol:
Offline Profile Quote Post Goto Top
 
eian_delacruz
Member Avatar
Pointer
In my case we applied the multi threading term to processing input files at the same time simultaneously. Though it doesn't involve processors at all but the concept of threading is applied. 100 scripts can run 1 or more tasks (i.e. processing, validating, rejecting and inserting records to DB) at the same time provided they run on separate threads.

We added restart/recovery to add flavor to our own version of multi-threading ala DB. :)
Offline Profile Quote Post Goto Top
 
angelpeach_12
Array
WOW...ka-alam sa inyo ba!!! Share man da bi sng pagka-genius nyo... :big grin:
Offline Profile Quote Post Goto Top
 
vincentg
Member Avatar

Alumni Moderator
Threading is very usefull kapin pa if you like to execute a procedure and still do another procedure at the same time.

This is use kapin pa sa Trading System...mga stocks exchange...
Just imagine, damo damo na Users ga login sa Server but on every request on per user, may gina process sya na request.

So the stress is ara sa Server Side w/c is normal man lng na ang Server is an expensive device.

Damu pa gid application sine..if you use Windows OS XP abi...try to press Ctrl - Alt - Del once to activate you Windows Task Manager...on the Processes Tab, you can see may mga list of application gadalagan at the same time....You can call that another example too.

For VB.Net fanatics.. try this one... make it sure my Procedure ka man nga LoadingAccounts....and you can call the LoadAccounts on Form Load or an on Click Event...

Sub LoadAccounts()
Dim StartAutoOffsetThread As System.Threading.Thread
StartAutoOffsetThread = New System.Threading.Thread(AddressOf LoadingAccounts)
StartAutoOffsetThread.Name = "Load Accounts"
StartAutoOffsetThread.Start()
End Sub

Offline Profile Quote Post Goto Top
 
angelpeach_12
Array
Yeah...you're right...is there any other examples pa guid sina??? :blink:
Offline Profile Quote Post Goto Top
 
eian_delacruz
Member Avatar
Pointer
vincentg
Aug 30 2006, 03:42 AM
For VB.Net fanatics.. try this one... make it sure my Procedure ka man nga LoadingAccounts....and you can call the LoadAccounts on Form Load or an on Click Event...

Sub LoadAccounts()
        Dim StartAutoOffsetThread As System.Threading.Thread
        StartAutoOffsetThread = New System.Threading.Thread(AddressOf LoadingAccounts)
        StartAutoOffsetThread.Name = "Load Accounts"
        StartAutoOffsetThread.Start()
End Sub

Vincentg or admin,

can we open a thread for VB.NET? where we can discuss more of this? I wanted to refresh and enhance my memory bout VB. I wouldn't want to forget my humble beginnings as a developer.

Vincentg would you be so kind to discuss or start the thread?

Thanks.
Offline Profile Quote Post Goto Top
 
angelpeach_12
Array
Ano yan??? As i look at the program daw may function sa gina tawag... am i right??? :huh:
Offline Profile Quote Post Goto Top
 
brentchua
Member Avatar

Global Moderator-B
yes. but they are already talking about vb.net. it's not c++. :)
Offline Profile Quote Post Goto Top
 
Go to Next Page
« Previous Topic · Microsoft Visual Studio · Next Topic »
Add Reply