• 0 Posts
  • 23 Comments
Joined 2 years ago
cake
Cake day: June 3rd, 2023

help-circle
  • I haven’t heard of that being what threading is, but that threading is about shared resourcing and memory space and not any special relationship with the scheduler.

    Per the wiki:

    On a multiprocessor or multi-core system, multiple threads can execute in parallel, with every processor or core executing a separate thread simultaneously; on a processor or core with hardware threads, separate software threads can also be executed concurrently by separate hardware threads.

    https://en.m.wikipedia.org/wiki/Thread_(computing)

    I also think you might be misunderstanding the relationship between concurrency and parallelism; they are not mutually exclusive. Something can be concurrent through parallelism, as the wiki page has (emphasis mine):

    Concurrency refers to the ability of a system to execute multiple tasks through simultaneous execution or time-sharing (context switching), sharing resources and managing interactions.

    https://en.m.wikipedia.org/wiki/Concurrency_(computer_science)



  • If what you said were true, wouldn’t it make a lot more sense for OP to be making a joke about how even if the source includes multi threading, all his extra cores are wasted? And make your original comment suggesting a coding issue instead of a language issue pretty misleading?

    But what you said is not correct. I just did a dumb little test

    import threading 
    import time
    
    def task(name):
      time.sleep(600)
    
    t1 = threading.Thread(target=task, args=("1",))
    t2 = threading.Thread(target=task, args=("2",))
    t3 = threading.Thread(target=task, args=("3",))
    
    t1.start()
    t2.start()
    t3.start()
    

    And then ps -efT | grep python and sure enough that python process has 4 threads. If you want to be even more certain of it you can strace -e clone,clone3 python ./threadtest.py and see that it is making clone3 syscalls.



  • Microsoft has fired two employees who organized an unauthorized vigil at the company’s headquarters

    But they contended that Thursday’s event was similar to other Microsoft-sanctioned employee giving campaigns

    Seems like employer approval is an important piece.

    But I think the most interesting part of the article is

    Nasr said his firing was disclosed on social media by the watchdog group Stop Antisemitism more than an hour before he received the call from Microsoft. The group didn’t immediately respond Friday to a request for comment on how it learned about the firing.







  • Exactly. I was extremely disappointed in the community reaction when Steam was going to implement the option for modders to get paid. Instead of focusing on the legitimate issues with the proposal (pay ratios were off, mod dependencies and ripoffs need to be addressed) it boiled down to “rah, I don’t want to pay for things I didn’t used to, rah. Real modders give me stuff for free.”

    I think we’re missing out by not having this as an option. Modding can provide a good stepping stone into full game development, and if people can earn money for their work, they can justify spending more time on it or potentially even doing it full time.