I don't know if homosexuals and pedofiles are necessarily associated together
especially not in this modern day, where most people are more than accepting of people who are of various sexual identities etc.
When it comes to pedofiles, i guess some of them are gay and there have been several serial killers in history who preyed upon young men and even little boys.
But as time has gone on, we now know that the motivation behind why people molest children can be different,
where some people are truly sexually attracted to children, where others, molest children not necessarily purely through having sexual urges but through holding strange religious beliefs (such as those who practice black magik etc), and those who molest children for magical beliefs can be male or female.
There also may be some who end up doing such horrific things to children because they have sustained brain damage or have been conditioned into doing such horrible things through upbringing.
I personally find it all horrifying. Think that such people if caught should be locked up for life or given the option to euthanasia. If it was up to me, if the people can not be cured, then they need to be kept away from normal safe society, as they will inevitably be a danger to others otherwise.
If they have to be kept away, I would get them housed in their own prison. Treated humanely. But not given encouragement in their abnormal interests. And once locked up, they would never be allowed to mix with children ever again.