Skip to main content

Posts

Showing posts from June, 2015

Threading!

What is Threading? Threads are a relatively lightweight way to implement multiple paths of execution inside of an application. At the system level, programs run side by side, with the system doling out execution time to each program based on its needs and the needs of other programs. Inside each program, however, exists one or more threads of execution, which can be used to perform different tasks simultaneously or in a nearly simultaneous manner. The system itself actually manages these threads of execution, scheduling them to run on the available cores and preemptively interrupting them as needed to allow other threads to run. From a technical standpoint, a thread is a combination of the kernel-level and application-level data structures needed to manage the execution of code. The kernel-level structures coordinate the dispatching of events to the thread and the preemptive scheduling of the thread on one of the available cores. The application-level structures include the call st

Python + network [One]

Already installed Pycharm community edition. Now writing my first script. It is saved as first.py in Pycharm Projects... I already know how to program and have some experience in python so i'm pretty much up and running for this course. next i did how to run scripts from command line to run from command line one must have to set the executable bit 'on' of the file... here's how to do it chmod +x first.py then we can run first.py by simply typing "' ./"' in front of the file to be exected.... Now what does "." means.... "." Dot represent current directory in Linux and Unix ".." Double Dot represent the upper working directory Now for the second program i wrote was on variable...(simple basic stuff) but had to get hands on so i wrote it and no errors at all... it is saved as var.py Next program is loops.py All i wrote was some for statements and some while statements..... for "FOR" i used multi

Basic Linux Links and usefull stuff

Hey guys You  might be looking for Basic Linux stuff then you are at the right place... :D I started using Linux about 5 years ago but got into it (seriously!) 1 and a half year before , on going through the basics which i learned from many documentation provided by THE AWESOMELY GREAT ~# TLDP #~ -->The documents it provided me : <<Download PDF if possible because it is formatted nicely in it compared to others (Not compulsory Totally Ur call) >> %  Introduction to Linux - A Hands on Guide   : It provided me real one on one interaction with THE GREAT OS EVER :D It gave me total overview of Linux and awesomely cool tricks. It also contains exercise at the end of each lesson or chapter. You should give it a look (serious advice :P) % Bash Guide for Beginners : Before starting with bashing you should know bare minimum concepts of Linux <which includes placement of files, commands interaction with term and much more> which you can take from t