I have prostatitis and taking an antibiotic course. I want to know how does masturbating help in this condition?

Release/prostate. Release of protatic fluid will help decrease prostatic congestion; however, excessive masturbation could result in irriation. Antibiotics are the treatment of choice.