Home All Groups Group Topic Archive Search About

synchronized method in vb.net

Author
24 Mar 2006 8:12 PM
Alan Wang
Hi there,

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

Thanks in advanced

Alan

Author
24 Mar 2006 8:23 PM
Herfried K. Wagner [MVP]
"Alan Wang" <w***@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/>
Author
27 Mar 2006 3:08 PM
Alan Wang
Herfried,

How about define class as <Synchronization()>?

Thanks

Alan
Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uR3XAD4TGHA.3888@TK2MSFTNGP10.phx.gbl...
> "Alan Wang" <w***@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/>
Author
25 Mar 2006 7:29 AM
Cor Ligthert [MVP]
Alan,

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

I hope this helps,

Cor

Show quoteHide quote
"Alan Wang" <w***@vdata.com> schreef in bericht
news:OIEBa93TGHA.4900@TK2MSFTNGP12.phx.gbl...
> Hi there,
>
> How can I create synchronized method  in vb.net like synchronized method
> in Java?
>
> Thanks in advanced
>
> Alan
>
Author
27 Mar 2006 3:08 PM
Alan Wang
Cor,

How about define class as <Synchronization()>?

Thanks

Alan


Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:uE0fd29TGHA.4608@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" <w***@vdata.com> schreef in bericht
> news:OIEBa93TGHA.4900@TK2MSFTNGP12.phx.gbl...
>> Hi there,
>>
>> How can I create synchronized method  in vb.net like synchronized method
>> in Java?
>>
>> Thanks in advanced
>>
>> Alan
>>
>
>
Author
27 Mar 2006 3:40 PM
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

Show quoteHide quote
"Alan Wang" <w***@vdata.com> schreef in bericht
news:ulcceBbUGHA.4340@TK2MSFTNGP10.phx.gbl...
> Cor,
>
> How about define class as <Synchronization()>?
>
> Thanks
>
> Alan
>
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:uE0fd29TGHA.4608@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" <w***@vdata.com> schreef in bericht
>> news:OIEBa93TGHA.4900@TK2MSFTNGP12.phx.gbl...
>>> Hi there,
>>>
>>> How can I create synchronized method  in vb.net like synchronized method
>>> in Java?
>>>
>>> Thanks in advanced
>>>
>>> Alan
>>>
>>
>>
>
>
Author
27 Mar 2006 4:20 PM
Alan Wang
Cor,

Thanks, I will do that.

Alan
Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:%235h6LSbUGHA.4884@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" <w***@vdata.com> schreef in bericht
> news:ulcceBbUGHA.4340@TK2MSFTNGP10.phx.gbl...
>> Cor,
>>
>> How about define class as <Synchronization()>?
>>
>> Thanks
>>
>> Alan
>>
>>
>> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
>> news:uE0fd29TGHA.4608@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" <w***@vdata.com> schreef in bericht
>>> news:OIEBa93TGHA.4900@TK2MSFTNGP12.phx.gbl...
>>>> Hi there,
>>>>
>>>> How can I create synchronized method  in vb.net like synchronized
>>>> method in Java?
>>>>
>>>> Thanks in advanced
>>>>
>>>> Alan
>>>>
>>>
>>>
>>
>>
>
>