By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

synchronized method in vb.net

P: n/a
Hi there,

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

Thanks in advanced

Alan
Mar 24 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.