Thanks to Meysam Mefouzi to posting here - http://www.codeproject.com/Articles/4852/Murphy-s-Computer-Law-others Bove's Theorem The remaining work to finish in order to reach your goal increases as the deadline approaches. Brook's Law Adding manpower to a late software project makes it later. Cann's Axiom When all else fails, read the instructions. Deadline-Dan's Demon Every task takes twice as long as you think it will take. If you double the time you think it will take, it will actually take four times as long. Demian's Observation There is always one item on the screen menu that is mislabeled and should read "ABANDON HOPE ALL YE WHO ENTER HERE." Dr. Caligari's Come-Back A bad sector disk error occurs only after you've done several hours of work without performing a backup. Finagle's Rules: To study an application best, understand it thoroughly before you start. Always keep a record of data....
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace InterlockedClassDemo { public partial class Form1 : Form { int Number = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Number =0; //whenever a button is clicked the Number is reassigned to 0 int totalThread = 10000; ...
Understading Callback method wher a function is executed not on the main thread but on a child thread that it created . Similary there are different ways of executing function created on the child thread. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Memory_understanding { public delegate void sumofnumberscallback(int sumofnumber); class A { int target; public A(int num) { this.target= num; } public void printNumber(int n) { ...
Comments
Post a Comment