Jump to content


Need help on Multi-threading, Pay $30


2 replies to this topic

#1 dr_grey

    New Member

  • Members
  • Pip
  • 2 posts

Posted 18 February 2005 - 03:44 AM

Specification (see detail from http://www.e2xpert.c...projectid=10157 ) :
We need a multi-threading windows application, the requirements are listed as follows:
1. Give the interface to allow user to set how many threads should be created;
2. Each thread creates one instance of the class TestWebServer, then calls its Initialize() method to initialize the class and waiting for the command from the main thread;
3. There is one button on the window form, when user clicks this button, all threads should call the method Start() in their TestWebServer class simultaneously.
4. After all thread finish the call to the method Start(), the windows form should list out the running time of the method Start() for each thread in a textbox.
5. No any other component used in the program except Visual Studio 2003;
6. All code should be in Visual Basic.NET
7. The program should Work reliably under Windows 2003 and Windows XP
8. The Class TestWebServer is shown below

Public Class TestWebServer
Private x as string
Private y as Integer

Public Sub Initialize(ByVal p1 As String, ByVal p2 As Integer)
'Used to initialize the class for the method Start()
x=p1
y=p2

End Sub

Public Sub Start(ByVal p3 As String, ByRef p4 As String)
'Call the web service on remote server in real situation
dim I as integer
for I=1 to 99999
y=(y+1)/10000
Next
End Sub
End Class

Background:
We try to create a test program to evaluate the concurrency performance of one web service. In the program we try to create multiple threads to call the web service simultaneously, at the same time we try to monitor the response time and capacity of the web server.

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 18 February 2005 - 08:53 AM

and why exactly can't you do this by yourself ?
If Prolog is the answer, what is the question ?

#3 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 18 February 2005 - 09:44 AM

I think this probably counts as advertising, so I'm moving it to personal announcements.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users