[mono-android] threads in c# vs java example, translated from mark murphy android tutorials

Michael Isbell michael.isbell at gmail.com
Sat Mar 19 13:44:20 EDT 2011


And a more honest answer to the question is that, while I programmed
exclusively in C# between 2001 and 2008, I haven't even looked at it since I
got buried in objc...so some of this is that I don't remember what I use to
know :-) just bought accelerated C# and jeff richter to remind me how all
this works.

yes, on my Kindle of course. Don't you judge me!





On Sat, Mar 19, 2011 at 1:04 PM, Michael Isbell <michael.isbell at gmail.com>wrote:

> good point about thread pool. I'll change that.
>
> I tried System.Threading.Thread and the interface wasn't quite right. Now
> that I have this working, I'll take another look.
>
>
>
> On Sat, Mar 19, 2011 at 11:22 AM, Jonathan Pryor <jpryor at novell.com>wrote:
>
>> On Mar 18, 2011, at 11:59 PM, Michael Isbell wrote:
>> > I'm reworking example number 8 (Threads) from Mark Murphy's Android Java
>> tutorials. Got it working the first time.
>>
>> I suppose a question that comes up is...why use Java.Lang.Thread instead
>> of System.Threading.Thread? [0]
>>
>> I understand that when porting code, using the same types is often easiest
>> (hence Java.Lang.Thread), but for the code you provided I don't see any
>> actual need to use it...
>>
>>  - Jon
>>
>> [0] For that matter, why use a Thread instead of the TPL of the
>> ThreadPool? :-)
>>
>> OK, ThreadPool.QueueUserWorkItem() is usually intended for "short" tasks,
>> and your thread isn't, but it's always something to keep in mind...
>>
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid at lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>>
>
>
>
> --
> Mike Isbell
>
>
>


-- 
Mike Isbell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110319/1c7f564a/attachment-0001.html 


More information about the Monodroid mailing list