tag:blogger.com,1999:blog-6915405415003666702.post6277121845549437904..comments2024-01-10T03:25:01.209+05:30Comments on N Recursions: Mutex tutorial and exampleNavhttp://www.blogger.com/profile/01320006785676088076noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-6915405415003666702.post-63706206327247525382024-01-10T02:37:28.379+05:302024-01-10T02:37:28.379+05:30Ten (or Nine, since its Jan) years later and still...Ten (or Nine, since its Jan) years later and still a great blog post. Thanks.martian0x80noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-9845241121136108852021-12-10T01:04:32.335+05:302021-12-10T01:04:32.335+05:30Six years later... great blog post. Helped me star...Six years later... great blog post. Helped me start understanding mutex and how I might use it. Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-76443135908985180942019-06-13T15:39:13.599+05:302019-06-13T15:39:13.599+05:30Brilliant article, Nav. Didn't get mutexes unt...Brilliant article, Nav. Didn't get mutexes until now. Thank you.thealoeshophttps://www.blogger.com/profile/06894038920806846529noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-51221350732921956122016-12-16T13:38:26.849+05:302016-12-16T13:38:26.849+05:30Great article, you have given good explanation to ...Great article, you have given good explanation to memory fencing and lockless programminganonymoushttps://www.blogger.com/profile/00246505998647659836noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-9660726372315443922015-06-05T12:51:57.943+05:302015-06-05T12:51:57.943+05:30You're most welcome Jason. By thanking me, you...You're most welcome Jason. By thanking me, you're just thanking one of the people in this world who contributes to open source. There are thousands of awesome people who share their knowledge and build open source software. The better way to thank us is by you contributing your knowledge to open source and build the internet for greater good. Also encourage others to do so: http://nrecursions.blogspot.in/2014/02/contributing-to-open-source-community.htmlNavhttps://www.blogger.com/profile/01320006785676088076noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-18953491974405292252015-06-03T23:18:49.026+05:302015-06-03T23:18:49.026+05:30Thank you for this simple explanation. My head wa...Thank you for this simple explanation. My head wasn't wrapping around this concept until now. Jason Dnoreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-62852434994838009112015-01-27T23:09:34.541+05:302015-01-27T23:09:34.541+05:30Glad it helped you, Anonymous! You taught me somet...Glad it helped you, Anonymous! You taught me something in return now. I wasn't familiar with std::shared_future and std::promise. Been quite some time since I used C++.<br />Yes, Blogger doesn't allow a Disqus handle yet, but there was the option of leaving your name and URL...<br />Cheers! Keep learning, and enjoy the LOL pages I put up every month whenever you pass by NRecursions!Navhttps://www.blogger.com/profile/01320006785676088076noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-4717017263203980292015-01-27T08:35:15.146+05:302015-01-27T08:35:15.146+05:30Super job! Needed to get this straight in my head ...Super job! Needed to get this straight in my head as I'm moving from futures to shared_futures. Wish I could sign in with my Disqus handle (seems friendlier than remaining anonymous)<br />Hope you have great day!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-19718309493337803122015-01-12T22:15:29.535+05:302015-01-12T22:15:29.535+05:30Thank you happyuk. Knowing that it has been useful...Thank you happyuk. Knowing that it has been useful to you brings happiness to what has been a rather disappointing day for me today. :-) Glad you wrote in.Navhttps://www.blogger.com/profile/01320006785676088076noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-3061620823700059662015-01-11T22:26:40.602+05:302015-01-11T22:26:40.602+05:30Nice example. Suitable for someone like me who ne...Nice example. Suitable for someone like me who needs to start understanding this stuff.happyukhttps://www.blogger.com/profile/02459558077829920642noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-18163098679890582892014-10-30T20:58:10.235+05:302014-10-30T20:58:10.235+05:30@Anonymous: I just considered posting a tutorial f...@Anonymous: I just considered posting a tutorial for the older version, but realized that the whole reason that I initially chose to post a simple example of using mutexes with TBB on StackOverflow.com (http://stackoverflow.com/questions/4989451/mutex-example-tutorial), was so that the explanation and the code would be short and clear. None of the other examples on the internet were concise, mainly because of pthread syntax and CreateMutex syntax which looks messy. Clarity in understanding was the primary focus of the tutorial, and neat syntax is needed for that.<br /><br />When I realized that most people didn't have access to TBB, I posted the C++0x example. <br /><br />Modern C++ compilers will easily be able to run the program which I posted, and I strongly recommend that people move toward modern standards. If you still want an older tutorial, then have a good look at how my code has been structured and understand the mutex concept. Then use the pre-C++0x code to create an example similar to mine, and post it online. It'll not only help in your learning, but will help others too. You'll automatically be doing this too: http://nrecursions.blogspot.in/2014/02/contributing-to-open-source-community.htmlNavhttps://www.blogger.com/profile/01320006785676088076noreply@blogger.comtag:blogger.com,1999:blog-6915405415003666702.post-28276029771764675752014-10-30T09:21:51.857+05:302014-10-30T09:21:51.857+05:30Example of pre c++ 2011 mutex would be great.Example of pre c++ 2011 mutex would be great.Anonymousnoreply@blogger.com