Unused threads automatically start as user identity?

t

static void Main(string[] args)
{
    var thread = new Thread(WhoAmI);
    thread.Start();
}

static void WhoAmI()
{ 
    //can i access network resources as the user who ran Main?
}
+3
source share
3 answers

Yes they do.

// So yes, you can.
+3
source

There is no identifier in the threads, processes are running. So yes.

Edit: As Michael points out, the thread execution context may represent a user other than the one owning the current process. But that will not happen unless you do it explicitly.

+3
source

. , .

+1

Source: https://habr.com/ru/post/1728690/


All Articles