- 0
Using semaphores
Asked by
Andre S.,
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By freedonX · Posted
Finished Subnaitica 1 last year. In my 38 years of playing video games, it was such an awesome experience. Never have I felt a game that has left a mark. How did I manage that? I didn't read any guides or saw any videos until 15 hours in and also only looked up for very specific area I was stuck. Took me 50 -60 hours to finish. -
By freedonX · Posted
Finished it recently. No weapons was just a great feature. You aren't military nor have military experience. -
By Usama Jawad96 · Posted
Excel, Word, and PowerPoint on the web grab welcome new feature by Usama Jawad The Microsoft 365 suite of software is a vital part of any organization that has decided to go with Microsoft's tech stack to meet its needs. As such, it's critical for the Redmond firm to continue upgrading the capabilities of its tools to retain its existing customers and attract new ones. And now, Microsoft has done just that by adding a very welcome new feature to some of its applications. Microsoft has announced that viewers of an Excel, PowerPoint, or Word file on the web can now directly request edit access to it. Previously, customers were forced to resort to workarounds to achieve the same purpose. One of these was to download a view-only file and make edits in a copy and reshare, while the other was to manually reach out to the owner of the file and ask them to give you edit access. Microsoft rightly acknowledged that these methods are too cumbersome and slow, so now it has integrated the option to directly request edit access in its web applications. In order to leverage this capability, customers need to do the following: Open the Excel, Word, or PowerPoint file on the web Click on the Viewing icon on the top-right Select Request more access Select the Ask to edit or Ask to review option, depending upon what you need You can optionally write a note to the file owner too; this can be used to provide more context about why you need additional rights Click send File owners will then receive an email with the request change in access along with the optional note, and they will be able to accept or deny the request directly from within the email. If they do the former, the requestor can refresh the file in order to get take advantage of increased access. That said, Microsoft has cautioned that the propagation of access elevation may take some time to reflect in large or complex documents, or those with many co-authors. Additionally, the capability is not supported in Classic View in Word for the web. However, it is available to all enterprise customers with Microsoft 365 and a stable internet connection as long as the file they are requesting elevated privilege for is available on OneDrive or SharePoint. -
By Brian Miller · Posted
Won't it be called iPhone 26? -
By freedonX · Posted
Things like these I would hope wasn't on the internet months prior launch. Having a WOW moment when it's presented to the audience for the first time would had been jaw dropping. (this amoung other tech accouncements)
-
-
Recent Achievements
-
K.I.S.S. earned a badge
One Year In
-
solidox earned a badge
Week One Done
-
solidox earned a badge
Dedicated
-
Devesh Beri earned a badge
Week One Done
-
956400 earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
Question
Andre S. Veteran
Hello, this is the first time I need to use semaphores, yes it is for an assignment. I have trouble wrapping my head around the concept. Come to think of it, wrapping a solid spheroidal body around an idea isn't trivial by itself, but anyway I disgress.
I have to write a little program that simulates a network. There are several computers in the network. Only one computer can be executing at any given time, and they must execute one after the other. Also, each computer is responsible for telling the "next" computer that it is its time to execute.
I am supposed to use semaphores to synchronize this. Now I don't see really how can semaphores help me do this. My first idea would be to make a "cycle" object, protected with a mutex, so only one computer can own the cycle at any given time. The computer could write in a global variable the id of the next computer and unlock the mutex when it's done. However, we're supposed to use semaphores, not mutexes.
Oh and it's POSIX semaphores and pthreads btw.
Thanks.
Link to comment
https://www.neowin.net/forum/topic/749492-using-semaphores/Share on other sites
13 answers to this question
Recommended Posts