I have seen some discussions in this community about Academia vs. Market world. However, they couldn't satisfy my this question:
Assuming what is written in answer of Why is Paper Publishing and getting a patent completely unrelated? by @Anonymous_Mathematicia, I can submit my paper and file the same idea as a patent, in parallel. However, it seems that it will cause a problem: Journals normally ask authors to submit only the "non submitted to others" studies and ask them "not to submit it anywhere else before rejection/withdrawal". Now, there are two plans (only the second one seems reasonable but I mention both for covering the possible cases) (a) if I am submitting the journal paper before filing the patent (that seems dangerous), then will I have the right of filing it for a patent? However, for plan 'a', even if for journal it is okay, for patent policy it may be considered as revealing the idea and burning the opportunity! (b) If I have filed (or published) the patent before submitting the journal paper, will I have the right of such submission?
In other words, is a published patent besides its copy as journal paper considered as double publication?