When a person has dual nationality, is he/she subject at the same time to the laws of the two countries to which he/she belongs?

No, that is why countries provide means to "give preference to one of the nationalities" to the person with dual nationality and thus have a point of reference in terms of citizen-state relations. These means are established through the signing of dual nationality treaties.