synchronized method in vb.net

A

Alan Wang

Hi there,

How can I create synchronized method in vb.net like synchronized method in
Java?

Thanks in advanced

Alan
 
C

Cor Ligthert [MVP]

Alan,

Beside the synchronized method is the Queue class in Net a very handy class.

I hope this helps,

Cor
 
C

Cor Ligthert [MVP]

Alan,

I never saw this, if you want a discussion about this, than I would in your
case ask this again in the newsgroup

microsoft.public.dotnet.general

Jon Skeet is active in that, he is using Java as much as C#.

Therefore have I the idea that he can give you much more information in the
line of what you think about synchronized. For us is it a method with
multithreading.

You are of course welcome here, it is just to get a better one to answer
you.

(Do not forget to add "as in Java" to your subject)

Cor
 
A

Alan Wang

Cor,

Thanks, I will do that.

Alan
Cor Ligthert said:
Alan,

I never saw this, if you want a discussion about this, than I would in
your case ask this again in the newsgroup

microsoft.public.dotnet.general

Jon Skeet is active in that, he is using Java as much as C#.

Therefore have I the idea that he can give you much more information in
the line of what you think about synchronized. For us is it a method with
multithreading.

You are of course welcome here, it is just to get a better one to answer
you.

(Do not forget to add "as in Java" to your subject)

Cor
 
B

Brian Gideon

Alan,

There are two SynchronizationAttribute classes. One is in
System.EnterpriseServices and the other is in
System.Runtime.Remoting.Contexts. The first can only be used on
classes derived from ServicedComponent. The second can only be used on
classes derived from ContextBoundObject. Based on that I don't think
either Synchronization attribute fits the OP's situation.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top