Wednesday, 16 July 2014

Review on “C Interview Q&A” 2nd Edition published by Shroff Publisher (SPD)

Leave a Comment
Purchase Link -> http://goo.gl/9C32uY 
There are several books on C programming published by different Publishers and different authors. But still students face many problems in answering questions on C language in technical written tests and interviews. This is also observed when students find it difficult to solve questions in GATE examination. The “C Interview Q&A” book addresses exactly these problems. The book is useful for all students aspiring to work in IT industries or one preparing for GATE examination. The students of various engineering disciplines, BCA, MCA and MSc(Computer Science) will be benefited from the book. 


The book covers almost all different types of objective questions asked on C Language. Though there are few books in similar pattern, these books do not give explanation to the answers. Hence it becomes mystery for a student who don’t understand the logic behind the answer. The author of “C Interview Q&A” has given explanation of each answer; this is very useful to students for understanding concepts. The book also discusses important theory on each topic at beginning of each topic to make clear understanding of the concepts.

Overall, “C Interview Q&A” book is a perfect guide for students to understand tricks and traps in C programming and to dissolve mystery of C programming
I would hence like to make an appeal to all my dear students that you can purchase copy of this book for long term investment. You can purchase this book from following link. If you use the below link you will get discounted price.

Purchase Link -> http://goo.gl/9C32uY


Read More...

Monday, 16 June 2014

Important Apps for your Android Phones in 2014

Leave a Comment

Android is the leading Smartphone OS (Operating System) around the world.  Smart Phone market is keep on increasing with fight between iOS and Android. It is also very hot topic in current generation though Android and iOS both is winner in some situations but numbers of Android phone users are more than iOS phone users (as survey by Kantar in 2014).  So today I picked up Android for you all!!!
Android phones are all over in the world and in this new generation people only look for smartphones which give them 1000’s of interactive features with tons of FREE apps.
There are nearly 1.2 million apps in the Google Play and out of theses 1 million apps are FREE.  This makes it harder to find right app for you. So here, I am going to give you some room by listing the best FREE apps in the Google play which is quite necessary to your phone or a must download app all by 2014.
I have categorized the apps so that people looking for niche apps can get it easily.
Below are the following categories present in the info-graphic shown below!!!
  • Books & References
  • Communication
  • Entertainment
  • Health
  • Media & Video
  • News
  • Personalization
  • Photography
  • Productivity
  • Shopping
  • Social
  • Tools
  • Travel
  • Weather
I hope you enjoy the info-graphic and find the best app to your phone.
Read More...

Wednesday, 4 June 2014

Utility of PThread on Linux

6 comments
Linux is a platform where we can run multiple threads synchronously. Thread is a part of a program and one program contains multiple threads. So we can achieve multithreading technique.

Creating a thread is similar to forking a new process. Only the difference is that, fork is shares the little bit of information of parent process and thread shares the more information with global and static local variables, open files and the process ID. For example, communication between client- server running on different computer systems can be completely specified by the association called a socket. In this client sends a request to server using connect() protocol, server response to client request using accept() protocol. After establishing a connection client-server both communicate with each other by using read and write system calls.

Utility of PThread on Linux


In above diagram it shows the creation of server and client programs. Server initiate first and then initiate more than one clients in a number.  Whenever a client connects to the server, a new thread can be created. Server can accept request of multiple clients at a time and server can create a connection ID number for each client and it provide access to the clients. So here we can achieve multi-threading concept.

PThread:-

PThread is a POSIX library which is used to creating a threads. PThreads is a set of threading interfaces. Creating and terminating threads, waiting for threads to complete, and managing the interaction between threads these actions are handle by the API. pthread.h header file includes the PThread library functions.
So, PThreads exist within a process but has its own independent control flow. Like heap and file descriptor it share common process resources. Two threads can concurrently read and write to the same shared memory. Each PThread maintains its own stack pointer, private set of registers, and can block and wake up on its own set of signals. 
   
      The function pthread_create is used to create a new thread, and the function pthread_exit is used by a thread to terminate itself.

 Function calls for PThread-

1.pthread_create()-    

int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void*(*start_routine)   (void),(void *arg)) ;
Where
thread - returns the thread id. (unsigned long int defined in bits/pthreadtypes.h)
attr - Set to NULL if default thread attributes are used.
void * (*start_routine) - pointer to the function to be threaded. Function has a single argument:             pointer to void.
*arg - pointer to argument of function. To pass multiple arguments, send a pointer to a structure.
 

2. pthread_exit()-

 void pthread_exit(void *retval);
where,
retval - Return value of thread. Return value is passed as a pointer.

Utility of PThread on Linux

3.pthread_self:

pthread_t pthread_self()
Returns the calling thread's identifier.
The pthread_self subroutine returns the calling thread's identifier.

4.pthread_join:

int pthread_join(pthread_t thread, void **value_ptr);
Blocks the calling thread until the specified thread id terminates.

5.pthread_detach:

int pthread_detach(pthread_t thread, void **value_ptr);
Detaches the specified thread from the calling thread.
 
Utility of PThread on Linux
 

Q. How to compile a program?

We should use following statement :
              $ gcc -o < executable name > < name of source file > -lpthread
For example to compile a simple Hello World program, 
           $ gcc -o helloworld pthread-helloworld.c –lpthread

Q. How to execute a program?

      We should use following statement:
             bsub -q <queue-name> [options] ./<executable-name>

Program for Creating a Thread-

#include <pthread.h>
#include <stdio.h>
#define N 5
void* hello(void *id)
 {
printf("Hello %d\n", (long)id);
pthread_exit(NULL);
}
int main (int argc, char *argv[])
 {
pthread_t threads[N];
for(long t=0; t<N; t++)
{
int rc = pthread_create(&threads[t], NULL, hello, (void *)t);
if (rc) exit(-1);
}
pthread_exit(NULL);
}


Author: This article is written by my proud student Miss. Ashwini Khochikar. You can find her on Facebook.

Read More...

Saturday, 17 May 2014

Things to consider before buying web hosting packages

Leave a Comment
Any website relies heavily on a good web hosting package. The brand of your web service is dependent upon this. It is wise to research well before buying one. Here are few tips enlisted.

Research

Large web hosting companies might tend to disappoint small web companies due to their existing brand reputation and large customer base. A fair read on Google via search might give you desired review about web hosting company. Remember that complaints are more common as people tend to crib more than praise.

Things to consider before buying web hosting packages

Free storage - really?

No web hosting service will offer you “unlimited” storage space, although advertised that way. Read the terms and conditions properly as to what fair cap are in the definition of the word unlimited for that web hosting company. Many web-hosting packages are available however, who strive hard to deliver on their unlimited storage promises by increasing hardware - CPUs and server disks in their data centers.

Bandwidth and disk space terms catch

It often skips the minds of the people to check out bandwidth and disk space considerations. You need to check out what is the quality of standard for the data transfer speeds for uploading and downloading from a remote client machine to your web hosting service server. Most web hosts clog their network traffic due to high volume of usage, potentially being a bad reputation for your website.

Separate hosting and domain considerations
Domain names seldom have to be registered at the same company that makes offering of storage space. It might come in handy to register for domain name elsewhere than the ones from whom you are buying a storage space deal. The domain name is a mere identity of your website online whereas the key thing that offers you utility is the disk space.

Free domain misleads

It sounds fantastic to get “free” domain, however, you need to bare in mind that such companies have in their contract terms to retain the domain name registered under their business name whereas you shall be just offered a lease on that domain name. If your website becomes popular online, they shall be the stakeholders in your business else you shall lose your online identity. Sometimes, first year is free and you shall be billed heavily for domain name from the following year onwards.

Commission and coupons

You need to ask for commission rebates and discount coupons since a web hosting service is a business where companies are willing to shell out one year pay for one customer just to establish identity online. Check out the affiliation programs that shall save a few bucks for your business.

Data backup considerations

Availability of data and reliability is a big question mark. You need to do the backup considerations before selecting a package. Else you might lose out on your customers’ data forever without even noticing it if the web hosting package offered to you isn't an established business with poor reputation and no guarantee of reliability. Quality of service agreements must be made in advance with the host.

About Author: This is a guest article written by Kuldeep, He writes about technology tips, Samsung Galaxy S6 rooting guides, Download Guides like Hike Messenger for PC  his blog.
Read More...

Top 5 Best Buysellads Alternatives In 2014

Leave a Comment
As the world of internet marketing is continuously evolving, there are many important points that are required to be considered. The real plan is not to rely on one thing. If you are following a plan A then you must be ready with your plan B because if the first plan does not work the plan B is always there to help you in the time of need. 

Top 5 Best Buysellads Alternatives In 2014

This same plan A and B thing applies to the buysellads. There are times when you file an application for buysellads but the application gets rejected. In such cases it is always advised that you should look out for alternatives and here are top 5 best buysellads alternatives in 2014.

Project Wonderful

Project wonderful is one of the best alternatives to buysellads.  The reason why it is considered as the best alternate is that there are many options that are made available to the publishers. You can also monetize the content that you are posting and in order to manage your payment issues you can make full use of the famous payment gateway that is PayPal. 

BlogAds

Blogads is another good alternative to buysellads and basically works on the principle of buy and sell direct ad spaces on your blog. There is a great amount of support that is provided to the publishers and you can easily get your money through the help of paypal.

Day beam

The reason why Day beam is so much popular is that the amount of commission charged by them is very less. It only charges 15 percent of the total amount and the website is based on a very customer friendly and user friendly platform. The beta version of the website makes it look like a fresh website and it supports PayPal for making or receiving payments. The entire payment mechanism is routed through a safe and secure server. 

Puxee

With the page rank number of 3 and an Alexa ranking of 82,516 the Puxee is no doubt another good alternative to buysellads. The profit sharing mechanism is based on 75 percent by 25 percent and it clearly means that you will get a larger share of the pie and they will only charge nominal and the genuine amount for their services. It supports PayPal which is one of the most popular and the mechanism for making payment through the internet.

Koomona

The reason why Koomona is added to the list is that it offers many unique ways to monetize your content. You also earn money by displaying ads and if you are able to get adequate ads, then you can contact the Koomona admin for getting the CPM ads. There is a special unsold advertising option that can be utilized. You can easily get your money through bank wire or PayPal.
All of the above mentioned options are the best and most popular alternatives to buysellads and in 2014 they are going to capture a fair share of the market through their excellent marketing skills.
About Author: This is a guest post written by Kuldeep, He writes about make money online, blogging, Fiverr Alternatives, SEO, Freelancing and other related topics on his blog Smart Earning Secrets.

Read More...
author

Owner:

Hi. This is Suhel S Sayyad. I have completed my Master's Degree from Walchand College of Engineering, Sangli. Currently, working as Assistant Professor at Annasaheb Dange College of Engineering and Technology Ashta. I am part time blogger and love to learn new technologies. My area of interest are Image Processing, Neural Networks, Databases, Mathematical Foundation of Computer Science

Get Free Email Updates to your Inbox!