Intermittent androgen-deprivation therapy (IADT) can be beneficial to delay the occurrence of treatment resistance and cancer relapse compared to the standard continuous therapy. To study the effect of IADT in controlling prostate cancer, we developed a Filippov prostate cancer model with a joint threshold function: therapy is implemented once the total population of androgen-dependent cells (AC-Ds) and androgen-independent cells (AC-Is) is greater than the threshold value ET, and it is suspended once the population is less than ET. As the parameters vary, our model undergoes a series of sliding bifurcations, including boundary node, focus, saddle, saddle-node and tangency bifurcations. We also obtained the coexistence of one, two or three real equilibria and the bistability of two equilibria. Our results demonstrate that the population of AC-Is can be contained at a predetermined level if the initial population of AC-Is is less than this level, and we choose a suitable threshold value.