sheikhazad Goto Github PK
Name: MD AZAD ALI SHAH
Type: User
Location: London
Name: MD AZAD ALI SHAH
Type: User
Location: London
This project shows how std::call_once magically restrict only one thread to call a block of code and avoid wrong use of mutex to protect data, thus increase efficiency.
We know that chickens hatch from eggs and eggs are laid by chickens. But the problem is "which came first: the chicken or the egg?" - Similar is the case of global objects creation - we are not sure which global variable is created first and which one after, when they are in different source files. Let's see how Singleton Design Pattern can solve this.
This project shows how deadlock is produced and multiple possible solutions to avoid deadlock. STEPS TO AVOID DEADLOCK: i) Avoid locking multiple mutexes but only 1 mutex if possible ii) After locking mutex, avoid calling user provided funtion (that can access/modify the resource without being locked) iii) If you require to lock more than 1 mutex then try to user API/RAII provided by modern C++ (which are discussed in this project) iv) If you can't use API/RAII mentioned in iii) above then lock the mutexes in the same order.
Implementation of stack in Golang. This is a non-thread safe but exception safe Stack. Thread safe Stack with API to get minimum value is implemented in other repository : https://github.com/sheikhazad/Minimum-Stack-Design_Thread-Safe_Golang
Real life example of alerting Passengers when Flight Boarding Gate is opened by using Observer Design Patter
A simple demo of Functional Programming with Unit Test by using GoogleTest in C++11/14
Design a stack to get minimum value in O(1) time in C++
Design a thread-safe stack to get minimum value in O(1) time with test in Golang
This project use some advanced features of Python like - Client-Server, Server exposed to RSTFUL webservice using Flask, Multi-threading, Locking mechanism etc.
Implementation of thread safe Singleton: Solution-1: By using mutex and atomic Solution-2: By using call_once and lambda function
This is to demonstrates how shared_ptr can be smart enough to use as RAII in different scenarios other than just memory management. In this demo, we use it for closing file descriptor in normal and exception conditions.
Example of TDD by using Gtest/Gmock
This is simple example of how Static Polymorphism is achieved by using Template Meta Programming(TMP)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.