Posts

Showing posts from August, 2013

Simple way producer–consumer problem's implementation in NodeJs

Problem Name :  Producer-Consumer Problem (Also Known as Bounded Buffer Problem ) Goal :  It's explain you "multi-process resource synchronization problem". Problem Statement :  there are many producers and many consumers, the work of producer is to generate/produce things/jobs/items any things and the work of consumer is to consume things/jobs/items/any things produced/generated by producer. What is the NodeJs ?                   Node.js is a platform built on  Chrome's JavaScript runtime  for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. Code : var express = require('express'); var app = express(); var queue = []; //Default Handler app.get('/',function(req,res){ res.send('Producer/Consumer Server'); }); //Producer Handler app

Long term Investment = Equity & Short term Investment = Debt

(Coming soon)

Investment in Equity = Investment in Ideas

Dear Readers, I know you visited my blog many times since one & half month to get to know any an interesting article wrote for you :) Yes, I got an idea for my next article a month ago but i was not getting time due to *** work & *** work :) hope you guys understood what i mean. any way ..you must read the title of this article that's " Investment in Equity = Investment in Ideas " Of course, you cant agreed/clear with this title in first time but I have recently completed all most 7 years in Equity Market and I experienced it. Let me give you in simple plain example you can able to understand & get it. " I have a my company and have my team that work for my company, now each day my team(employee) work on some thing that match my daily goal and eventually, it'd complete my company goal.  So, To do this, Of course it's not rocket science i means i have to give an  enough time to my team to produce sufficient & productive an output/