What is Runnable for?

0

I was thinking about creating thread one in my software, but I saw in the forums that Runnable helped in some way to create a thread , and wanted to understand how it works.

    
asked by anonymous 21.04.2016 / 16:29

1 answer

2

I do not know anything about Runnable in C #. This is Java stuff. This class was necessary because of a deficiency in the beginning of the language.

Even the use of raw thread is considered outdated in C #. Of course it can be used, but ideally wherever possible, that is appropriate, and almost always is, prefer to use Task , which will choose to create / use internal threads , if needed.

If you'd like to dwell on this, take a look at ThreadStart .

    
21.04.2016 / 16:37