Content: Brief introduction of what is future and promise in C++. Sample code to implement promise and future in C++. Set an exception in promise
Category: Technology
Use of shared_future in C++ 11
The shared_future object works similar to std::future except that it can be copied and thereby more than one std::future can share the ownership. The use
Detail understanding and usage of std::async in C++ 11
Agenda: Introduction to std::async. Accessing the shared state of the future. Get a value from parent to child- Full filling promise. set_exception – failed to
Multithreading in C++
Introduction : The std::thread class was introduced in C++ 11 to facilitate multithreading. POSIX (Pthread thread ) library in C or Win32 threads (CreateThread AfxBeginThread)
Asynchronous packaged_task in C++ 11
Defination of packaged_task : The class template packaged_task wraps any Callable target, which can be invoked later. The callable objects can be function, lambda expression,
Exception Handling in C++
Topics Covered: Introduction. Stack unwinding. Stack unwinding and dynamic memory allocation. Nested exception handling. Error handling in constructor and destructor. noexcept keyword in c++. 1.
Static Constructor in C#
A static function is used to initialise any static data or to make a single-use action. Before the first instance is created or any static
Coalescing operator?? in C#
If the left-hand operand is not null, the null-coalescing operator?? returns its value; otherwise, it evaluates the right-hand operand and returns its result. If the
Keyword auto in C++ ( type inference or type deduction ) | Programming in C++
Keyword auto in C++ is explained in few simple steps: The keyword auto in C++ (Type Inference) refers to automatic deduction of the data type.
Day2: FAQ Interview questions – Coding
This is 2nd Day, where I have covered few major areas to cover most of the FAQ questions during the coding interview.Feel free to ask