Click here to Skip to main content
15,911,711 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: SelectSingleNode Not Getting Node Pin
#realJSOP30-Oct-07 3:19
professional#realJSOP30-Oct-07 3:19 
GeneralRe: SelectSingleNode Not Getting Node [modified] Pin
#realJSOP30-Oct-07 3:05
professional#realJSOP30-Oct-07 3:05 
GeneralRe: SelectSingleNode Not Getting Node Pin
Ed.Poore30-Oct-07 4:17
Ed.Poore30-Oct-07 4:17 
Question.NET on MAC OS Pin
Fayu29-Oct-07 10:23
Fayu29-Oct-07 10:23 
AnswerRe: .NET on MAC OS Pin
#realJSOP29-Oct-07 12:23
professional#realJSOP29-Oct-07 12:23 
AnswerRe: .NET on MAC OS Pin
Ed.Poore29-Oct-07 13:27
Ed.Poore29-Oct-07 13:27 
AnswerRe: .NET on MAC OS Pin
Pete O'Hanlon30-Oct-07 2:21
mvePete O'Hanlon30-Oct-07 2:21 
QuestionI need help! Threading [modified] Pin
tim63729-Oct-07 9:27
tim63729-Oct-07 9:27 
I have a project to do called Multithreading and in this lab I have to creat A console application and start two threads simultaneously.

1. I created a console appleation and called it System.ThreadingDemo.

2. I need to creat a new static method called Counting. I'm not so sure how to go about it? I need feedback here.

3. In the new class, I need to add a using statment or the import statement for VB
to the System.Threading namespace? I need a feedback here!

4. In the new method, I need to creat a for loop that counts from 1 to 10? How would you do this?

5. within the New for loop, write out the current count and the ManagedThreadID for the current thread. I need a example here.

6. after writing out to the console, I need to sleep the current thread for 10 milliseconds.
I could use some feed back here.

7. I need to go back to the main method, and create a new ThreadStart delegate that points to the Counting method. Like what? what do they mean point to?

8. Now at this point I need Two threads, each pointing to the counting method.
How woud you code two more threads here?

This is a CODE example of a school project.... it needs work

after all said and done I have to Start both threads and join both threads to ensure that the application doesn't comloete until the threads are done. My code should look something like this:

Imports System.Threading

Class Program

Public Overloads Shared Sub Main()

Dim start As ThreadStart = New ThreadStart(AddressOf Counting)
Dim first As Thread = New Thread(starter)
Dim second As Thread = New Thread(starter)

first.start()
second.start()

first.join()
second.join()

console.Read()
End Sub

Shared Sub Counting()
Dim i As Integer
For i = 1 to 10 step i = 1

Console.WriteLine("Count: {0} - Thread: {1}" , -
i,Thread.CurrentThread.ManagedThreadID)
Thread.Sleep(10)

Next
End Sub

End Class

'You can copy this and use work with it, just let me know what you think.






-- modified at 8:37 Tuesday 30th October, 2007

tim637

AnswerRe: I need help! Threading Pin
Luc Pattyn29-Oct-07 9:48
sitebuilderLuc Pattyn29-Oct-07 9:48 
GeneralRe: I need help! Threading Pin
Paul Conrad29-Oct-07 17:33
professionalPaul Conrad29-Oct-07 17:33 
GeneralRe: I need help! Threading Pin
tim63730-Oct-07 2:32
tim63730-Oct-07 2:32 
AnswerRe: I need help! Threading Pin
ganesh197530-Oct-07 3:04
ganesh197530-Oct-07 3:04 
GeneralRe: I need help! Threading Pin
tim63730-Oct-07 4:25
tim63730-Oct-07 4:25 
QuestionRunning Managed Code Pin
CodeWolf)29-Oct-07 4:43
CodeWolf)29-Oct-07 4:43 
QuestionRe: Running Managed Code Pin
TJoe29-Oct-07 5:30
TJoe29-Oct-07 5:30 
AnswerRe: Running Managed Code Pin
CodeWolf)29-Oct-07 5:34
CodeWolf)29-Oct-07 5:34 
QuestionRe: Running Managed Code Pin
TJoe29-Oct-07 6:24
TJoe29-Oct-07 6:24 
GeneralRe: Running Managed Code Pin
Mike Dimmick29-Oct-07 12:51
Mike Dimmick29-Oct-07 12:51 
GeneralRe: Running Managed Code Pin
CodeWolf)30-Oct-07 3:46
CodeWolf)30-Oct-07 3:46 
GeneralRe: Running Managed Code Pin
CodeWolf)30-Oct-07 3:56
CodeWolf)30-Oct-07 3:56 
QuestionBuild .NET 1.1 project as .NET 2.0 project without converting Pin
__DanC__29-Oct-07 2:04
__DanC__29-Oct-07 2:04 
AnswerRe: Build .NET 1.1 project as .NET 2.0 project without converting Pin
Mike Dimmick29-Oct-07 3:14
Mike Dimmick29-Oct-07 3:14 
QuestionUsing nero sdk for burning DVD Pin
jack_200928-Oct-07 21:48
jack_200928-Oct-07 21:48 
AnswerRe: Using nero sdk for burning DVD Pin
AliAmjad29-Oct-07 5:08
AliAmjad29-Oct-07 5:08 
QuestionUsing SqlCeEngine class in Windows application Pin
Ferudun Atakan28-Oct-07 8:01
Ferudun Atakan28-Oct-07 8:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.