Threadworms, also known as pinworms, are a type of tiny parasite that can burrow into the intestines of people. They are common in children and are easily passed on by close contact with infected people or things. Infection with threadworms may cause itching around the anus, restless sleep, and insomnia. Treatment for threadworms involves taking medication to prevent them from breeding, along with basic hygiene rules to stop getting infected again. You seek medical consultation immediately if you suspect an infection of threadworms so that you won’t let it affect other people by spreading the threadworms.