Saryn
Saryn
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
Just mind it maybe not be 12 if you have a 6c/12t CPU... Your computer is doing other things that isn't just running your program.
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
As many as your cpu allows for.
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
True, but just wanted to differentiate as he was wondering why a 6c/12t cpu was not being reflected given his test code
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
That wouldn't make sense with your previous comment about increasing number of threads.
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
cpu thread != c# thread.
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
also popping from a queue recursively is not using a queue correctly.
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
So you want 72 functions on the stack until the queue is empty?
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
Because you're telling a thread to not work for a set amount of time with thread.Sleep() as the other person said.
79 replies
CC#
Created by cheeze2000 on 1/13/2024 in #help
need help understanding `Task`s
Tasks are not exactly concurrent processes. You have a limited number of threads for processing a queue of tasks. They will process as threads become available.
79 replies
CC#
Created by 0xcg on 1/13/2024 in #help
Windows hosting .net 7.0 web api project doesn't connection mssql database
I don't know anything about Plesk Panel, I also do not work with databases on windows. I apologize, not my area of expertise
10 replies
CC#
Created by 0xcg on 1/13/2024 in #help
Windows hosting .net 7.0 web api project doesn't connection mssql database
Even if the database is on the same machine, user@localhost needs permissions.
10 replies
CC#
Created by 0xcg on 1/13/2024 in #help
Windows hosting .net 7.0 web api project doesn't connection mssql database
Sounds like a database permissions issue. Verify your database user has permissions for the table from the VPS IP.
10 replies
CC#
Created by 0xcg on 1/13/2024 in #help
Windows hosting .net 7.0 web api project doesn't connection mssql database
Verify you can connect to the database from the same machine you are running your code. Most databases required explicit permissions per client ip.
10 replies