Heat sugar and water in a pan. Keep stirring occasionally. Sugar will melt, and syrup will form. On further heating, when the syrup becomes thick, take out few drops of syrup. When it is cool enough to handle, put it between your first finger and thumb. When you move the thumb away from the finger, 2 threads of the syrup should form. If it does not happen, cook the syrup a bit more.