• 0 Posts
  • 99 Comments
Joined 3 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.








  • AndrasKrigare@beehaw.orgtoMemes@lemmy.mlArrrrrr
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    sometimes it’s a matter of means & availability, sometimes it’s a matter of controlling their paid-for content (like people who actually buy switch games but want to run them on their steam deck), and sometimes it’s basically a hobby

    Very little of that justifies it to me. For means & availability, this isn’t a mother stealing baby formula. Pirated content isn’t a need (though I’d make an exception for things like school books). There’s plenty of content made to be free and available, as well as libraries. And I’m completely fine with people pirating copies of paid-for content; there’s an argument to be made that that isn’t actually piracy and is personal archiving. It probably doesn’t need to be said that “hobby” is not a justification in the least, just like people who shoplift for the thrill.

    I see supporting a service hostile to users as immoral - it’s like enabling an abuser, however slight, you’re contributing to behaviors that are a detriment to others

    To me the real crux is that you believe that not doing something immoral is the same thing as doing something moral. Me sitting here is moral because I’m not murdering someone. Yay me. I’m also not blackmailing, gaslighting, stealing, etc. etc. Me sitting here might be the most moral thing anyone has ever done.

    To me the case for the absence of activity actually being moral is it requires some amount of sacrifice to continue to do the right thing. Avoiding going to Walmart to support a local business, even if you pay more and it’s further away. The difference between not wanting to see a movie and boycotting it. There’s nothing moral about not going to a movie you didn’t want to see. But I think it is moral to avoid going to a movie you wanted to because of labor practices; you made a sacrifice in support of your beliefs. If you then go and pirate said movie, it’s indistinguishable from selfish behavior.

    As I’ve said in other spots, if it’s genuinely about not supporting hostile services and not about self-interest, donate however much you’re saving by pirating to a union or charity. That’s completely fair. But if not, all I see is people acting in their self interest and trying to justify it by saying that they are doing a bad thing to bad people so it’s okay (and maybe they’re doing a little bad to some good people as well, but that’s a price you’re willing to have them pay for you).