May 2016

How to Earn From Microworkers


Microworkers of the world
Microworkers is for the micro jobs. It means you can not earn more money by completing one task. But when you complete your job correctly, you will sure collect your money. Microworkers is very trustful platform, it never cheats you. There you can see no of tasks in the microworker sites, then you should complete these task. In each task has its particular money. Many task has less than $ 1 but you can do multiple task. It is very easy to complete these task but you should have patient do to them. If you are searching for long time to work and get money, microworker can be your best platform.
Microworkers provide mostly simple and click paste jobs, sign up and sign in, writing jobs, commenting, article writing, guest posting, photo liking, click and giving the impression to the sites etc.

How to get money through Microworkers.com?


You should just sign up the microworkers account. Then just log in into the dashboard. Then their you can see the microworkers tab bar tabs: Jobs, Hg jobs, Task I finished, My campaign, deposit, withdraw, account.
By clicking jobs tab you can see the varius jobs. There only appears the jobs which are available for you because microworkers reviews all your jobs. If you do better jobs in the initial phase, then microworkers offer better and more jobs to you otherwise you are penalize and there appears few and less money jobs for you. So be careful while doing the jobs. But in the initil time you are offered average jobs. Here I am going to show you the step by step process to complete and task offered by microworkers:-

Step 1: After login into your dashboard click on the Jobs tab. There you will see many jobs in category form like sign up job, click,search, bookmark, google, youtube,facebook etc.

Step 2: Choose one category like in the figure here I choose all jobs category.

Microworkers jobs

Step 3: Then choose one task among them. Here I choose Amazing work:sign up task.

Step 4: Now another link will open and there you will find the publisher's expected work from the workders.

Step 5: Read carefully the given expected info. and then do just as they said.

expected jobs from workers

Step 6: After doing this you should provide the proof of your jobs done as they say.

Step 7: Now click on confirm button.

You did it successfully but you should know where the earned money will appear.
After your confirm your job done, then your done job will appear in the task i finished page. Just click there and now there you can see your done job but in the minus sign. The sign will be green right after reviewing and accepting by the publisher, then the determined money will appear in your account.

You also should have a questions when can I get the money. You can get that money when you make $10. When your account has 10 dollars, then microworkers will sent you a address pin in your address and you should do as they advice. 

Difference between Pipe and Fifo


Pipe and Fifo both are IPC (Inter Process Communication) object.

Pipe (IPC Object)

  • Pipe does not have any name unlike Fifo.
  • Pipe is a structure of data which is contained into the memory. It is removed when existing process terminates.
  • Basically, Pipe is used to communicate between 2 or more related processes.
  • If Pipe is already in opened state, then it does not need to be opened.
  • Pipe provides simplex data flow
  • eg: pipe(int fd[2])

Fifo (IPC Object)

  • Fifo is also an IPC object, but it has its name.
  • Unlike Pipe, it is a structure of file which is created in disc.
  • It is also used for communication but only between unrelated processes.
  • It should be opened every time when it needs to write and read.
  • Fifo provides half duplex data flow.
  • eg: mkfifo(const char * path_name, mode_t mode)

Inter Process Communication Objects - pipe()



  • In unix system, pipe is known as an inter process communication mechanism.
  • A process can write data to pipe, and that data can be read by another process.
  • In pipe IPC, the data is handled in fifo i.e first in first out order.
  • Pipe does not have any name, it is only created for one use and both ends must be inherited from the single process which created the pipe.
  • Since it is a IPC object, it is used to communicate between two process i.e parent and child.
  • Pipe is created using pipe function (pipe()). Pipe also creates description pair which can be denoted as fd[0], fd[1]. Primarily fd[0] for reading and fd[1] for writing.
  • As pipe sets up, the data can be passed using read and write functions.

Elementary System Calls - Wait() and Waitpid()


Wait function suspends the execution of the calling process until one of its children terminates.

Waitpid suspends execution of the calling process until a child specified by pid argument has changed state.

Wait():

  • Wait() continues to block the caller until a child process terminates.
  • If there are more than one child running, wait() returns the first time one of the parent's offspring exists
  • It doesn't support job control.

Waitpid():

  • It can be either blocking or non-blocking:
if 0, blocking
if WNOHANG, non-blocking
It is flexible
It waits for child process if pid is -1
It waits for child of greater process id if pid>0
It waits for any child whose process group ID equals that of the calling process if pid equals to 0.
It waits for any child whose process group ID equals that absolute value of pid. 
  • It supports job control. 

exec() family calls - Network Programming


A child process (process created using fork()) can execute any other program using exec(). There are 6 exec() family calls in network programming.

The process is executed in memory by new program file from disk, and the process is replaced as well.

In here, the new program only executes; there is not being created new process. Therefore, no change occurs in process ID.

Six exec() family calls:

1) execl: 


  • execl is the first member of exec() family.
  • It can take several arguments. It always takes full pathname as the first argument.
  • It accepts a null pointer which marks the end of arguments in execl.


Lets see a simple example of execl. Lets suppose we have newscript.sh

#!/bin/ksh
echo "Hello Execl"

Now lets see a simple program which is written in C language to understand the actual use of execl.

void main()
{
      execl("/home/users/newscript.sh","newscript.sh",(char *)0);
      exit(0);
      getch();
}

2) execv: 


execl and execv works same, however, there is a minor difference between them and i.e arguments for the script in the array can be passed in execv, but execl passes them individually.

3) execlp: 

execl and execv are same but in execlp we only pass the name of script unlike execl on which full path is passed.

4) execvp:

exev and excvp are same but excvp takes the full path of script and only replaces the individual arguments given in the execlp. 

5) execle

Unlike other methods, it takes extra environmental argument variable. 

6) execve:

It works same as execle does, however unlike the execle, it takes arguments for the script in an array.


Synopsis of different exec() family calls:

int execl(const char *pathname, const char *argument(),......., const char *argmentName, (char *)0);
int execle(const char *pathname, const char *argument(),......., const char *argmentName, (char *)0, char * const envp[]);
int execlp(const char *filename, const char *argument(),......., const char *argmentName, (char *)0);
int execv(const char *pathname, char * const argumentValue[]);
int execve(const char *pathname, char * const argumentValue[], char * const envp[]);
int execvp(const char *filename, char *argumentValue[]);


Elementary Operating System Call - Fork()


What is system call ?

Karnel is the heart of Computer System. In computer system, a request has to be made by operating system to the Karnel in order to get the service, and it is only done in programmatic way, which is known as system call.

Program is a collection of instructions that is made to complete a particular task. And a process is a particular program which is currently in running status.

Thread includes in process i.e process has some properties of thread - a single sequence stream within process is called thread.


Fork() 



  • In UNIX system, we use Fork() to create duplicate of a process by creating address space for duplicate one.
  • The process from which fork method is called, known as parent process. And child process is the new created process. Child and Parent, both processes return from the system call and execute the next instruction. 
  • Child process has all the features and ability of parent process i.e all memory segments of parent process are consumed by child process also. Parent and Child both processes execute independently whereas there is same code for both processes.
  • Parent and Child both process have different process IDs. They are executed at different memory address. 
  • As fork method executes, it returns twice - 0 and process ID to parent process if fork is successfully executed and it returns -1 if it is failed.
Synopsis
#include<unistd.h>
pid_t fork(void);

The Reason Why Everyone Love Blogging


Why is blogging important
A lot of people worldwide proudly call their self a blogger, even i, I used to hate blogging at first because it frustrate me all those things about SEO, Backlinks, Meta tags, etc. I never thought that blogging would be this fun so I would list down some of the highlighted reason why most of people stick and love being a blogger

SHARING IDEAS

Blogging is essential way to share your idea and thoughts with everyone else, at first when I start blogging I really don’t know how to start , what topic would I choose but then after hard thinking i got myself an idea on blogging about Android because I love android and I know a lot about it, so i stick with that topic, and after years passed by I got more experience and knowledge about blogging so I started sharing my ideas about blogging too, that’s why blogging is one of the best way to share idea on our fellow netizen.


EARN ONLINE

I think every blogger knows this, if you’re a blogger you can earn money with your content that’s why many people spending a lot of hard work in their blog for it to earn more, Adsense is one of the Ad Network where in millions of website and blog used to monetize to their site/blog , So you can earn money by just sitting down your chair writing a good article and drives traffic to your blog, 

BUILDING COMMUNITIES

Many blogger, enter the world of blogging to connect with others to be part of something, meet new people to connect relatives and friends and to discuss on a certain topics

PROMOTING YOUR SELF

What is the best way to be known about your skills, talent or your creativity, many people blogging to share their self for example (Soccer Tutorial by you, or ARTS you made) By that you get exposes to other people.

HELPING INEED 

I think you already know this , I know you get a lot of knowledge in other blog sharing helpful importation for example before starting a blog I know that you search about how to start a blog first right? So other we are thankful that other blogger share their ideas and knowledge to others, that’s why they blog because they’re good on something to help other who don’t.

TO BE HEARD

Many writers engage them self to blog because as you know millions and millions of people now a days is connected to internet and spend a lot of their time in it. So that’s why writer start blogging to so that many people will notice his/her work.