469,623 Members | 1,409 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

synchronized method in vb.net

Hi there,

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

Thanks in advanced

Alan
Mar 24 '06 #1
7 6987
"Alan Wang" <wa**@vdata.com> schrieb:
How can I create synchronized method in vb.net like synchronized method
in Java?


Check out the 'SyncLock' keyword.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 24 '06 #2
Alan,

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

I hope this helps,

Cor

"Alan Wang" <wa**@vdata.com> schreef in bericht
news:OI**************@TK2MSFTNGP12.phx.gbl...
Hi there,

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

Thanks in advanced

Alan

Mar 25 '06 #3
Herfried,

How about define class as <Synchronization()>?

Thanks

Alan
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
"Alan Wang" <wa**@vdata.com> schrieb:
How can I create synchronized method in vb.net like synchronized method
in Java?


Check out the 'SyncLock' keyword.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 27 '06 #4
Cor,

How about define class as <Synchronization()>?

Thanks

Alan
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
Alan,

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

I hope this helps,

Cor

"Alan Wang" <wa**@vdata.com> schreef in bericht
news:OI**************@TK2MSFTNGP12.phx.gbl...
Hi there,

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

Thanks in advanced

Alan


Mar 27 '06 #5
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

"Alan Wang" <wa**@vdata.com> schreef in bericht
news:ul**************@TK2MSFTNGP10.phx.gbl...
Cor,

How about define class as <Synchronization()>?

Thanks

Alan
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
Alan,

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

I hope this helps,

Cor

"Alan Wang" <wa**@vdata.com> schreef in bericht
news:OI**************@TK2MSFTNGP12.phx.gbl...
Hi there,

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

Thanks in advanced

Alan



Mar 27 '06 #6
Cor,

Thanks, I will do that.

Alan
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

"Alan Wang" <wa**@vdata.com> schreef in bericht
news:ul**************@TK2MSFTNGP10.phx.gbl...
Cor,

How about define class as <Synchronization()>?

Thanks

Alan
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
Alan,

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

I hope this helps,

Cor

"Alan Wang" <wa**@vdata.com> schreef in bericht
news:OI**************@TK2MSFTNGP12.phx.gbl...
Hi there,

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

Thanks in advanced

Alan



Mar 27 '06 #7
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

Alan Wang wrote:
Cor,

How about define class as <Synchronization()>?

Thanks

Alan


Mar 27 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Frank | last post: by
5 posts views Thread by Max Ischenko | last post: by
6 posts views Thread by rmunson8 | last post: by
8 posts views Thread by ASP.Net programmer | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.